mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-03 00:43:46 +00:00
update sample tests, fix Java tests (#20300)
* replace removed forkMode * remove junit runner where it's not needed * update samples without skipping test files, but skip files named "FILES" * revert overwriting custom tests, add custom java tests to list * add one sample to CircleCI, fix various Java tests
This commit is contained in:
@@ -13,9 +13,15 @@
|
||||
|
||||
package org.openapitools.client.api;
|
||||
|
||||
import org.openapitools.client.ApiException;
|
||||
import org.junit.jupiter.api.Disabled;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.openapitools.client.ApiException;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
|
||||
|
||||
/**
|
||||
|
||||
@@ -13,10 +13,19 @@
|
||||
|
||||
package org.openapitools.client.api;
|
||||
|
||||
import org.openapitools.client.ApiException;
|
||||
import java.io.File;
|
||||
import org.openapitools.client.model.Pet;
|
||||
import org.openapitools.client.model.StringEnumRef;
|
||||
import org.openapitools.client.model.Tag;
|
||||
import org.junit.jupiter.api.Disabled;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.openapitools.client.ApiException;
|
||||
import org.openapitools.client.model.Pet;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
|
||||
|
||||
/**
|
||||
@@ -28,6 +37,107 @@ public class BodyApiTest {
|
||||
private final BodyApi api = new BodyApi();
|
||||
|
||||
|
||||
/**
|
||||
* Test binary (gif) response body
|
||||
*
|
||||
* Test binary (gif) response body
|
||||
*
|
||||
* @throws ApiException
|
||||
* if the Api call fails
|
||||
*/
|
||||
@Test
|
||||
public void testBinaryGifTest() throws ApiException {
|
||||
File response =
|
||||
api.testBinaryGif();
|
||||
|
||||
// TODO: test validations
|
||||
}
|
||||
|
||||
/**
|
||||
* Test body parameter(s)
|
||||
*
|
||||
* Test body parameter(s)
|
||||
*
|
||||
* @throws ApiException
|
||||
* if the Api call fails
|
||||
*/
|
||||
@Test
|
||||
public void testBodyApplicationOctetstreamBinaryTest() throws ApiException {
|
||||
File body = null;
|
||||
String response =
|
||||
api.testBodyApplicationOctetstreamBinary(body);
|
||||
|
||||
// TODO: test validations
|
||||
}
|
||||
|
||||
/**
|
||||
* Test array of binary in multipart mime
|
||||
*
|
||||
* Test array of binary in multipart mime
|
||||
*
|
||||
* @throws ApiException
|
||||
* if the Api call fails
|
||||
*/
|
||||
@Test
|
||||
public void testBodyMultipartFormdataArrayOfBinaryTest() throws ApiException {
|
||||
List<File> files = null;
|
||||
String response =
|
||||
api.testBodyMultipartFormdataArrayOfBinary(files);
|
||||
|
||||
// TODO: test validations
|
||||
}
|
||||
|
||||
/**
|
||||
* Test single binary in multipart mime
|
||||
*
|
||||
* Test single binary in multipart mime
|
||||
*
|
||||
* @throws ApiException
|
||||
* if the Api call fails
|
||||
*/
|
||||
@Test
|
||||
public void testBodyMultipartFormdataSingleBinaryTest() throws ApiException {
|
||||
File myFile = null;
|
||||
String response =
|
||||
api.testBodyMultipartFormdataSingleBinary(myFile);
|
||||
|
||||
// TODO: test validations
|
||||
}
|
||||
|
||||
/**
|
||||
* Test body parameter(s)
|
||||
*
|
||||
* Test body parameter(s)
|
||||
*
|
||||
* @throws ApiException
|
||||
* if the Api call fails
|
||||
*/
|
||||
@Test
|
||||
public void testEchoBodyAllOfPetTest() throws ApiException {
|
||||
Pet pet = null;
|
||||
Pet response =
|
||||
api.testEchoBodyAllOfPet(pet);
|
||||
|
||||
// TODO: test validations
|
||||
}
|
||||
|
||||
/**
|
||||
* Test free form object
|
||||
*
|
||||
* Test free form object
|
||||
*
|
||||
* @throws ApiException
|
||||
* if the Api call fails
|
||||
*/
|
||||
@Test
|
||||
public void testEchoBodyFreeFormObjectResponseStringTest() throws ApiException {
|
||||
Object body = null;
|
||||
String response =
|
||||
api.testEchoBodyFreeFormObjectResponseString(body);
|
||||
|
||||
// TODO: test validations
|
||||
}
|
||||
|
||||
/**
|
||||
* Test body parameter(s)
|
||||
*
|
||||
@@ -45,4 +155,55 @@ public class BodyApiTest {
|
||||
// TODO: test validations
|
||||
}
|
||||
|
||||
/**
|
||||
* Test empty response body
|
||||
*
|
||||
* Test empty response body
|
||||
*
|
||||
* @throws ApiException
|
||||
* if the Api call fails
|
||||
*/
|
||||
@Test
|
||||
public void testEchoBodyPetResponseStringTest() throws ApiException {
|
||||
Pet pet = null;
|
||||
String response =
|
||||
api.testEchoBodyPetResponseString(pet);
|
||||
|
||||
// TODO: test validations
|
||||
}
|
||||
|
||||
/**
|
||||
* Test string enum response body
|
||||
*
|
||||
* Test string enum response body
|
||||
*
|
||||
* @throws ApiException
|
||||
* if the Api call fails
|
||||
*/
|
||||
@Test
|
||||
public void testEchoBodyStringEnumTest() throws ApiException {
|
||||
String body = null;
|
||||
StringEnumRef response =
|
||||
api.testEchoBodyStringEnum(body);
|
||||
|
||||
// TODO: test validations
|
||||
}
|
||||
|
||||
/**
|
||||
* Test empty json (request body)
|
||||
*
|
||||
* Test empty json (request body)
|
||||
*
|
||||
* @throws ApiException
|
||||
* if the Api call fails
|
||||
*/
|
||||
@Test
|
||||
public void testEchoBodyTagResponseStringTest() throws ApiException {
|
||||
Tag tag = null;
|
||||
String response =
|
||||
api.testEchoBodyTagResponseString(tag);
|
||||
|
||||
// TODO: test validations
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -13,9 +13,16 @@
|
||||
|
||||
package org.openapitools.client.api;
|
||||
|
||||
import org.openapitools.client.ApiException;
|
||||
import org.openapitools.client.model.TestFormObjectMultipartRequestMarker;
|
||||
import org.junit.jupiter.api.Disabled;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.openapitools.client.ApiException;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
|
||||
|
||||
/**
|
||||
@@ -46,4 +53,43 @@ public class FormApiTest {
|
||||
// TODO: test validations
|
||||
}
|
||||
|
||||
/**
|
||||
* Test form parameter(s) for multipart schema
|
||||
*
|
||||
* Test form parameter(s) for multipart schema
|
||||
*
|
||||
* @throws ApiException
|
||||
* if the Api call fails
|
||||
*/
|
||||
@Test
|
||||
public void testFormObjectMultipartTest() throws ApiException {
|
||||
TestFormObjectMultipartRequestMarker marker = null;
|
||||
String response =
|
||||
api.testFormObjectMultipart(marker);
|
||||
|
||||
// TODO: test validations
|
||||
}
|
||||
|
||||
/**
|
||||
* Test form parameter(s) for oneOf schema
|
||||
*
|
||||
* Test form parameter(s) for oneOf schema
|
||||
*
|
||||
* @throws ApiException
|
||||
* if the Api call fails
|
||||
*/
|
||||
@Test
|
||||
public void testFormOneofTest() throws ApiException {
|
||||
String form1 = null;
|
||||
Integer form2 = null;
|
||||
String form3 = null;
|
||||
Boolean form4 = null;
|
||||
Long id = null;
|
||||
String name = null;
|
||||
String response =
|
||||
api.testFormOneof(form1, form2, form3, form4, id, name);
|
||||
|
||||
// TODO: test validations
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -13,10 +13,16 @@
|
||||
|
||||
package org.openapitools.client.api;
|
||||
|
||||
import org.junit.jupiter.api.Disabled;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.openapitools.client.ApiException;
|
||||
import org.openapitools.client.model.StringEnumRef;
|
||||
import org.junit.jupiter.api.Disabled;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
|
||||
|
||||
/**
|
||||
|
||||
@@ -13,10 +13,16 @@
|
||||
|
||||
package org.openapitools.client.api;
|
||||
|
||||
import org.junit.jupiter.api.Disabled;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.openapitools.client.ApiException;
|
||||
import org.openapitools.client.model.StringEnumRef;
|
||||
import org.junit.jupiter.api.Disabled;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
|
||||
|
||||
/**
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
* Echo Server API
|
||||
*
|
||||
* The version of the OpenAPI document: 0.1.0
|
||||
* Contact: team@openapitools.oprg
|
||||
* Contact: team@openapitools.org
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
@@ -13,10 +13,22 @@
|
||||
|
||||
package org.openapitools.client.api;
|
||||
|
||||
import org.openapitools.client.ApiException;
|
||||
import org.openapitools.client.model.DataQuery;
|
||||
import java.time.LocalDate;
|
||||
import java.time.Instant;
|
||||
import org.openapitools.client.model.Pet;
|
||||
import org.openapitools.client.model.StringEnumRef;
|
||||
import org.openapitools.client.model.TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter;
|
||||
import org.openapitools.client.model.TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter;
|
||||
import org.junit.jupiter.api.Disabled;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.openapitools.client.ApiException;
|
||||
import org.openapitools.client.model.Pet;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
|
||||
|
||||
/**
|
||||
@@ -28,6 +40,147 @@ public class QueryApiTest {
|
||||
private final QueryApi api = new QueryApi();
|
||||
|
||||
|
||||
/**
|
||||
* Test query parameter(s)
|
||||
*
|
||||
* Test query parameter(s)
|
||||
*
|
||||
* @throws ApiException
|
||||
* if the Api call fails
|
||||
*/
|
||||
@Test
|
||||
public void testEnumRefStringTest() throws ApiException {
|
||||
String enumNonrefStringQuery = null;
|
||||
StringEnumRef enumRefStringQuery = null;
|
||||
String response =
|
||||
api.testEnumRefString(enumNonrefStringQuery, enumRefStringQuery);
|
||||
|
||||
// TODO: test validations
|
||||
}
|
||||
|
||||
/**
|
||||
* Test query parameter(s)
|
||||
*
|
||||
* Test query parameter(s)
|
||||
*
|
||||
* @throws ApiException
|
||||
* if the Api call fails
|
||||
*/
|
||||
@Test
|
||||
public void testQueryDatetimeDateStringTest() throws ApiException {
|
||||
Instant datetimeQuery = null;
|
||||
LocalDate dateQuery = null;
|
||||
String stringQuery = null;
|
||||
String response =
|
||||
api.testQueryDatetimeDateString(datetimeQuery, dateQuery, stringQuery);
|
||||
|
||||
// TODO: test validations
|
||||
}
|
||||
|
||||
/**
|
||||
* Test query parameter(s)
|
||||
*
|
||||
* Test query parameter(s)
|
||||
*
|
||||
* @throws ApiException
|
||||
* if the Api call fails
|
||||
*/
|
||||
@Test
|
||||
public void testQueryIntegerBooleanStringTest() throws ApiException {
|
||||
Integer integerQuery = null;
|
||||
Boolean booleanQuery = null;
|
||||
String stringQuery = null;
|
||||
String response =
|
||||
api.testQueryIntegerBooleanString(integerQuery, booleanQuery, stringQuery);
|
||||
|
||||
// TODO: test validations
|
||||
}
|
||||
|
||||
/**
|
||||
* Test query parameter(s)
|
||||
*
|
||||
* Test query parameter(s)
|
||||
*
|
||||
* @throws ApiException
|
||||
* if the Api call fails
|
||||
*/
|
||||
@Test
|
||||
public void testQueryStyleDeepObjectExplodeTrueObjectTest() throws ApiException {
|
||||
Pet queryObject = null;
|
||||
String response =
|
||||
api.testQueryStyleDeepObjectExplodeTrueObject(queryObject);
|
||||
|
||||
// TODO: test validations
|
||||
}
|
||||
|
||||
/**
|
||||
* Test query parameter(s)
|
||||
*
|
||||
* Test query parameter(s)
|
||||
*
|
||||
* @throws ApiException
|
||||
* if the Api call fails
|
||||
*/
|
||||
@Test
|
||||
public void testQueryStyleDeepObjectExplodeTrueObjectAllOfTest() throws ApiException {
|
||||
TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter queryObject = null;
|
||||
String response =
|
||||
api.testQueryStyleDeepObjectExplodeTrueObjectAllOf(queryObject);
|
||||
|
||||
// TODO: test validations
|
||||
}
|
||||
|
||||
/**
|
||||
* Test query parameter(s)
|
||||
*
|
||||
* Test query parameter(s)
|
||||
*
|
||||
* @throws ApiException
|
||||
* if the Api call fails
|
||||
*/
|
||||
@Test
|
||||
public void testQueryStyleFormExplodeFalseArrayIntegerTest() throws ApiException {
|
||||
List<Integer> queryObject = null;
|
||||
String response =
|
||||
api.testQueryStyleFormExplodeFalseArrayInteger(queryObject);
|
||||
|
||||
// TODO: test validations
|
||||
}
|
||||
|
||||
/**
|
||||
* Test query parameter(s)
|
||||
*
|
||||
* Test query parameter(s)
|
||||
*
|
||||
* @throws ApiException
|
||||
* if the Api call fails
|
||||
*/
|
||||
@Test
|
||||
public void testQueryStyleFormExplodeFalseArrayStringTest() throws ApiException {
|
||||
List<String> queryObject = null;
|
||||
String response =
|
||||
api.testQueryStyleFormExplodeFalseArrayString(queryObject);
|
||||
|
||||
// TODO: test validations
|
||||
}
|
||||
|
||||
/**
|
||||
* Test query parameter(s)
|
||||
*
|
||||
* Test query parameter(s)
|
||||
*
|
||||
* @throws ApiException
|
||||
* if the Api call fails
|
||||
*/
|
||||
@Test
|
||||
public void testQueryStyleFormExplodeTrueArrayStringTest() throws ApiException {
|
||||
TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter queryObject = null;
|
||||
String response =
|
||||
api.testQueryStyleFormExplodeTrueArrayString(queryObject);
|
||||
|
||||
// TODO: test validations
|
||||
}
|
||||
|
||||
/**
|
||||
* Test query parameter(s)
|
||||
*
|
||||
@@ -45,4 +198,21 @@ public class QueryApiTest {
|
||||
// TODO: test validations
|
||||
}
|
||||
|
||||
/**
|
||||
* Test query parameter(s)
|
||||
*
|
||||
* Test query parameter(s)
|
||||
*
|
||||
* @throws ApiException
|
||||
* if the Api call fails
|
||||
*/
|
||||
@Test
|
||||
public void testQueryStyleFormExplodeTrueObjectAllOfTest() throws ApiException {
|
||||
DataQuery queryObject = null;
|
||||
String response =
|
||||
api.testQueryStyleFormExplodeTrueObjectAllOf(queryObject);
|
||||
|
||||
// TODO: test validations
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -13,20 +13,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 java.util.Arrays;
|
||||
import org.junit.jupiter.api.Assertions;
|
||||
import org.junit.jupiter.api.Disabled;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
|
||||
/**
|
||||
* Model tests for Bird
|
||||
*/
|
||||
public class BirdTest {
|
||||
class BirdTest {
|
||||
private final Bird model = new Bird();
|
||||
|
||||
/**
|
||||
* Model tests for Bird
|
||||
*/
|
||||
@Test
|
||||
public void testBird() {
|
||||
void testBird() {
|
||||
// TODO: test Bird
|
||||
}
|
||||
|
||||
@@ -34,7 +41,7 @@ public class BirdTest {
|
||||
* Test the property 'size'
|
||||
*/
|
||||
@Test
|
||||
public void sizeTest() {
|
||||
void sizeTest() {
|
||||
// TODO: test size
|
||||
}
|
||||
|
||||
@@ -42,7 +49,7 @@ public class BirdTest {
|
||||
* Test the property 'color'
|
||||
*/
|
||||
@Test
|
||||
public void colorTest() {
|
||||
void colorTest() {
|
||||
// TODO: test color
|
||||
}
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
* Echo Server API
|
||||
*
|
||||
* The version of the OpenAPI document: 0.1.0
|
||||
* Contact: team@openapitools.oprg
|
||||
* Contact: team@openapitools.org
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
@@ -13,20 +13,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 java.util.Arrays;
|
||||
import org.junit.jupiter.api.Assertions;
|
||||
import org.junit.jupiter.api.Disabled;
|
||||
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
|
||||
}
|
||||
|
||||
@@ -34,7 +41,7 @@ public class CategoryTest {
|
||||
* Test the property 'id'
|
||||
*/
|
||||
@Test
|
||||
public void idTest() {
|
||||
void idTest() {
|
||||
// TODO: test id
|
||||
}
|
||||
|
||||
@@ -42,7 +49,7 @@ public class CategoryTest {
|
||||
* Test the property 'name'
|
||||
*/
|
||||
@Test
|
||||
public void nameTest() {
|
||||
void nameTest() {
|
||||
// TODO: test name
|
||||
}
|
||||
|
||||
|
||||
@@ -13,44 +13,39 @@
|
||||
|
||||
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 java.time.Instant;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import org.openapitools.client.model.Query;
|
||||
import org.junit.jupiter.api.Assertions;
|
||||
import org.junit.jupiter.api.Disabled;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
|
||||
/**
|
||||
* Model tests for DataQuery
|
||||
*/
|
||||
public class DataQueryTest {
|
||||
class DataQueryTest {
|
||||
private final DataQuery model = new DataQuery();
|
||||
|
||||
/**
|
||||
* Model tests for DataQuery
|
||||
*/
|
||||
@Test
|
||||
public void testDataQuery() {
|
||||
void testDataQuery() {
|
||||
// TODO: test DataQuery
|
||||
}
|
||||
|
||||
/**
|
||||
* Test the property 'text'
|
||||
*/
|
||||
@Test
|
||||
public void textTest() {
|
||||
// TODO: test text
|
||||
}
|
||||
|
||||
/**
|
||||
* Test the property 'date'
|
||||
*/
|
||||
@Test
|
||||
public void dateTest() {
|
||||
// TODO: test date
|
||||
}
|
||||
|
||||
/**
|
||||
* Test the property 'id'
|
||||
*/
|
||||
@Test
|
||||
public void idTest() {
|
||||
void idTest() {
|
||||
// TODO: test id
|
||||
}
|
||||
|
||||
@@ -58,8 +53,32 @@ public class DataQueryTest {
|
||||
* Test the property 'outcomes'
|
||||
*/
|
||||
@Test
|
||||
public void outcomesTest() {
|
||||
void outcomesTest() {
|
||||
// TODO: test outcomes
|
||||
}
|
||||
|
||||
/**
|
||||
* Test the property 'suffix'
|
||||
*/
|
||||
@Test
|
||||
void suffixTest() {
|
||||
// TODO: test suffix
|
||||
}
|
||||
|
||||
/**
|
||||
* Test the property 'text'
|
||||
*/
|
||||
@Test
|
||||
void textTest() {
|
||||
// TODO: test text
|
||||
}
|
||||
|
||||
/**
|
||||
* Test the property 'date'
|
||||
*/
|
||||
@Test
|
||||
void dateTest() {
|
||||
// TODO: test date
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -13,28 +13,50 @@
|
||||
|
||||
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 java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import org.openapitools.client.model.StringEnumRef;
|
||||
import org.openapitools.jackson.nullable.JsonNullable;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import org.openapitools.jackson.nullable.JsonNullable;
|
||||
import java.util.NoSuchElementException;
|
||||
import org.junit.jupiter.api.Assertions;
|
||||
import org.junit.jupiter.api.Disabled;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
|
||||
/**
|
||||
* Model tests for DefaultValue
|
||||
*/
|
||||
public class DefaultValueTest {
|
||||
class DefaultValueTest {
|
||||
private final DefaultValue model = new DefaultValue();
|
||||
|
||||
/**
|
||||
* Model tests for DefaultValue
|
||||
*/
|
||||
@Test
|
||||
public void testDefaultValue() {
|
||||
void testDefaultValue() {
|
||||
// TODO: test DefaultValue
|
||||
}
|
||||
|
||||
/**
|
||||
* Test the property 'arrayStringEnumRefDefault'
|
||||
*/
|
||||
@Test
|
||||
void arrayStringEnumRefDefaultTest() {
|
||||
// TODO: test arrayStringEnumRefDefault
|
||||
}
|
||||
|
||||
/**
|
||||
* Test the property 'arrayStringEnumDefault'
|
||||
*/
|
||||
@Test
|
||||
public void arrayStringEnumDefaultTest() {
|
||||
void arrayStringEnumDefaultTest() {
|
||||
// TODO: test arrayStringEnumDefault
|
||||
}
|
||||
|
||||
@@ -42,15 +64,23 @@ public class DefaultValueTest {
|
||||
* Test the property 'arrayStringDefault'
|
||||
*/
|
||||
@Test
|
||||
public void arrayStringDefaultTest() {
|
||||
void arrayStringDefaultTest() {
|
||||
// TODO: test arrayStringDefault
|
||||
}
|
||||
|
||||
/**
|
||||
* Test the property 'arrayIntegerDefault'
|
||||
*/
|
||||
@Test
|
||||
void arrayIntegerDefaultTest() {
|
||||
// TODO: test arrayIntegerDefault
|
||||
}
|
||||
|
||||
/**
|
||||
* Test the property 'arrayString'
|
||||
*/
|
||||
@Test
|
||||
public void arrayStringTest() {
|
||||
void arrayStringTest() {
|
||||
// TODO: test arrayString
|
||||
}
|
||||
|
||||
@@ -58,15 +88,23 @@ public class DefaultValueTest {
|
||||
* Test the property 'arrayStringNullable'
|
||||
*/
|
||||
@Test
|
||||
public void arrayStringNullableTest() {
|
||||
void arrayStringNullableTest() {
|
||||
// TODO: test arrayStringNullable
|
||||
}
|
||||
|
||||
/**
|
||||
* Test the property 'arrayStringExtensionNullable'
|
||||
*/
|
||||
@Test
|
||||
void arrayStringExtensionNullableTest() {
|
||||
// TODO: test arrayStringExtensionNullable
|
||||
}
|
||||
|
||||
/**
|
||||
* Test the property 'stringNullable'
|
||||
*/
|
||||
@Test
|
||||
public void stringNullableTest() {
|
||||
void stringNullableTest() {
|
||||
// TODO: test stringNullable
|
||||
}
|
||||
|
||||
|
||||
@@ -13,20 +13,28 @@
|
||||
|
||||
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 java.math.BigDecimal;
|
||||
import java.util.Arrays;
|
||||
import org.junit.jupiter.api.Assertions;
|
||||
import org.junit.jupiter.api.Disabled;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
|
||||
/**
|
||||
* Model tests for NumberPropertiesOnly
|
||||
*/
|
||||
public class NumberPropertiesOnlyTest {
|
||||
class NumberPropertiesOnlyTest {
|
||||
private final NumberPropertiesOnly model = new NumberPropertiesOnly();
|
||||
|
||||
/**
|
||||
* Model tests for NumberPropertiesOnly
|
||||
*/
|
||||
@Test
|
||||
public void testNumberPropertiesOnly() {
|
||||
void testNumberPropertiesOnly() {
|
||||
// TODO: test NumberPropertiesOnly
|
||||
}
|
||||
|
||||
@@ -34,7 +42,7 @@ public class NumberPropertiesOnlyTest {
|
||||
* Test the property 'number'
|
||||
*/
|
||||
@Test
|
||||
public void numberTest() {
|
||||
void numberTest() {
|
||||
// TODO: test number
|
||||
}
|
||||
|
||||
@@ -42,7 +50,7 @@ public class NumberPropertiesOnlyTest {
|
||||
* Test the property '_float'
|
||||
*/
|
||||
@Test
|
||||
public void _floatTest() {
|
||||
void _floatTest() {
|
||||
// TODO: test _float
|
||||
}
|
||||
|
||||
@@ -50,7 +58,7 @@ public class NumberPropertiesOnlyTest {
|
||||
* Test the property '_double'
|
||||
*/
|
||||
@Test
|
||||
public void _doubleTest() {
|
||||
void _doubleTest() {
|
||||
// TODO: test _double
|
||||
}
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
* Echo Server API
|
||||
*
|
||||
* The version of the OpenAPI document: 0.1.0
|
||||
* Contact: team@openapitools.oprg
|
||||
* Contact: team@openapitools.org
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
@@ -13,20 +13,31 @@
|
||||
|
||||
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 java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import org.openapitools.client.model.Category;
|
||||
import org.openapitools.client.model.Tag;
|
||||
import org.junit.jupiter.api.Assertions;
|
||||
import org.junit.jupiter.api.Disabled;
|
||||
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
|
||||
}
|
||||
|
||||
@@ -34,7 +45,7 @@ public class PetTest {
|
||||
* Test the property 'id'
|
||||
*/
|
||||
@Test
|
||||
public void idTest() {
|
||||
void idTest() {
|
||||
// TODO: test id
|
||||
}
|
||||
|
||||
@@ -42,7 +53,7 @@ public class PetTest {
|
||||
* Test the property 'name'
|
||||
*/
|
||||
@Test
|
||||
public void nameTest() {
|
||||
void nameTest() {
|
||||
// TODO: test name
|
||||
}
|
||||
|
||||
@@ -50,7 +61,7 @@ public class PetTest {
|
||||
* Test the property 'category'
|
||||
*/
|
||||
@Test
|
||||
public void categoryTest() {
|
||||
void categoryTest() {
|
||||
// TODO: test category
|
||||
}
|
||||
|
||||
@@ -58,7 +69,7 @@ public class PetTest {
|
||||
* Test the property 'photoUrls'
|
||||
*/
|
||||
@Test
|
||||
public void photoUrlsTest() {
|
||||
void photoUrlsTest() {
|
||||
// TODO: test photoUrls
|
||||
}
|
||||
|
||||
@@ -66,7 +77,7 @@ public class PetTest {
|
||||
* Test the property 'tags'
|
||||
*/
|
||||
@Test
|
||||
public void tagsTest() {
|
||||
void tagsTest() {
|
||||
// TODO: test tags
|
||||
}
|
||||
|
||||
@@ -74,7 +85,7 @@ public class PetTest {
|
||||
* Test the property 'status'
|
||||
*/
|
||||
@Test
|
||||
public void statusTest() {
|
||||
void statusTest() {
|
||||
// TODO: test status
|
||||
}
|
||||
|
||||
|
||||
@@ -13,20 +13,29 @@
|
||||
|
||||
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 java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import org.junit.jupiter.api.Assertions;
|
||||
import org.junit.jupiter.api.Disabled;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
|
||||
/**
|
||||
* Model tests for Query
|
||||
*/
|
||||
public class QueryTest {
|
||||
class QueryTest {
|
||||
private final Query model = new Query();
|
||||
|
||||
/**
|
||||
* Model tests for Query
|
||||
*/
|
||||
@Test
|
||||
public void testQuery() {
|
||||
void testQuery() {
|
||||
// TODO: test Query
|
||||
}
|
||||
|
||||
@@ -34,7 +43,7 @@ public class QueryTest {
|
||||
* Test the property 'id'
|
||||
*/
|
||||
@Test
|
||||
public void idTest() {
|
||||
void idTest() {
|
||||
// TODO: test id
|
||||
}
|
||||
|
||||
@@ -42,7 +51,7 @@ public class QueryTest {
|
||||
* Test the property 'outcomes'
|
||||
*/
|
||||
@Test
|
||||
public void outcomesTest() {
|
||||
void outcomesTest() {
|
||||
// TODO: test outcomes
|
||||
}
|
||||
|
||||
|
||||
@@ -13,18 +13,19 @@
|
||||
|
||||
package org.openapitools.client.model;
|
||||
|
||||
import org.junit.jupiter.api.Assertions;
|
||||
import org.junit.jupiter.api.Disabled;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
|
||||
/**
|
||||
* Model tests for StringEnumRef
|
||||
*/
|
||||
public class StringEnumRefTest {
|
||||
class StringEnumRefTest {
|
||||
/**
|
||||
* Model tests for StringEnumRef
|
||||
*/
|
||||
@Test
|
||||
public void testStringEnumRef() {
|
||||
void testStringEnumRef() {
|
||||
// TODO: test StringEnumRef
|
||||
}
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
* Echo Server API
|
||||
*
|
||||
* The version of the OpenAPI document: 0.1.0
|
||||
* Contact: team@openapitools.oprg
|
||||
* Contact: team@openapitools.org
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
@@ -13,20 +13,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 java.util.Arrays;
|
||||
import org.junit.jupiter.api.Assertions;
|
||||
import org.junit.jupiter.api.Disabled;
|
||||
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
|
||||
}
|
||||
|
||||
@@ -34,7 +41,7 @@ public class TagTest {
|
||||
* Test the property 'id'
|
||||
*/
|
||||
@Test
|
||||
public void idTest() {
|
||||
void idTest() {
|
||||
// TODO: test id
|
||||
}
|
||||
|
||||
@@ -42,7 +49,7 @@ public class TagTest {
|
||||
* Test the property 'name'
|
||||
*/
|
||||
@Test
|
||||
public void nameTest() {
|
||||
void nameTest() {
|
||||
// TODO: test name
|
||||
}
|
||||
|
||||
|
||||
@@ -13,19 +13,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 java.util.Arrays;
|
||||
import org.junit.jupiter.api.Assertions;
|
||||
import org.junit.jupiter.api.Disabled;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
/**
|
||||
* Model tests for TestFormObjectMultipartRequestMarker
|
||||
*/
|
||||
public class TestFormObjectMultipartRequestMarkerTest {
|
||||
class TestFormObjectMultipartRequestMarkerTest {
|
||||
private final TestFormObjectMultipartRequestMarker model = new TestFormObjectMultipartRequestMarker();
|
||||
|
||||
/**
|
||||
* Model tests for TestFormObjectMultipartRequestMarker
|
||||
*/
|
||||
@Test
|
||||
public void testTestFormObjectMultipartRequestMarker() {
|
||||
void testTestFormObjectMultipartRequestMarker() {
|
||||
// TODO: test TestFormObjectMultipartRequestMarker
|
||||
}
|
||||
|
||||
@@ -33,7 +41,7 @@ public class TestFormObjectMultipartRequestMarkerTest {
|
||||
* Test the property 'name'
|
||||
*/
|
||||
@Test
|
||||
public void nameTest() {
|
||||
void nameTest() {
|
||||
// TODO: test name
|
||||
}
|
||||
|
||||
|
||||
@@ -13,44 +13,35 @@
|
||||
|
||||
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 java.util.Arrays;
|
||||
import org.junit.jupiter.api.Assertions;
|
||||
import org.junit.jupiter.api.Disabled;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
|
||||
/**
|
||||
* Model tests for TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter
|
||||
*/
|
||||
public class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameterTest {
|
||||
class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameterTest {
|
||||
private final TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter model = new TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter();
|
||||
|
||||
/**
|
||||
* Model tests for TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter
|
||||
*/
|
||||
@Test
|
||||
public void testTestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter() {
|
||||
void testTestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter() {
|
||||
// TODO: test TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter
|
||||
}
|
||||
|
||||
/**
|
||||
* Test the property 'id'
|
||||
*/
|
||||
@Test
|
||||
public void idTest() {
|
||||
// TODO: test id
|
||||
}
|
||||
|
||||
/**
|
||||
* Test the property 'name'
|
||||
*/
|
||||
@Test
|
||||
public void nameTest() {
|
||||
// TODO: test name
|
||||
}
|
||||
|
||||
/**
|
||||
* Test the property 'size'
|
||||
*/
|
||||
@Test
|
||||
public void sizeTest() {
|
||||
void sizeTest() {
|
||||
// TODO: test size
|
||||
}
|
||||
|
||||
@@ -58,8 +49,24 @@ public class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameterT
|
||||
* Test the property 'color'
|
||||
*/
|
||||
@Test
|
||||
public void colorTest() {
|
||||
void colorTest() {
|
||||
// TODO: test color
|
||||
}
|
||||
|
||||
/**
|
||||
* Test the property 'id'
|
||||
*/
|
||||
@Test
|
||||
void idTest() {
|
||||
// TODO: test id
|
||||
}
|
||||
|
||||
/**
|
||||
* Test the property 'name'
|
||||
*/
|
||||
@Test
|
||||
void nameTest() {
|
||||
// TODO: test name
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
* Echo Server API
|
||||
*
|
||||
* The version of the OpenAPI document: 0.1.0
|
||||
* Contact: team@openapitools.oprg
|
||||
* Contact: team@openapitools.org
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
@@ -13,20 +13,29 @@
|
||||
|
||||
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 java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import org.junit.jupiter.api.Assertions;
|
||||
import org.junit.jupiter.api.Disabled;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
|
||||
/**
|
||||
* Model tests for TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter
|
||||
*/
|
||||
public class TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameterTest {
|
||||
class TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameterTest {
|
||||
private final TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter model = new TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter();
|
||||
|
||||
/**
|
||||
* Model tests for TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter
|
||||
*/
|
||||
@Test
|
||||
public void testTestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter() {
|
||||
void testTestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter() {
|
||||
// TODO: test TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter
|
||||
}
|
||||
|
||||
@@ -34,7 +43,7 @@ public class TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameterTest {
|
||||
* Test the property 'values'
|
||||
*/
|
||||
@Test
|
||||
public void valuesTest() {
|
||||
void valuesTest() {
|
||||
// TODO: test values
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user