Skip to content

Commit

Permalink
revert overwriting custom tests, add custom java tests to list
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-mfg committed Dec 11, 2024
1 parent 04b5ff1 commit 178d47b
Show file tree
Hide file tree
Showing 505 changed files with 6,272 additions and 5,417 deletions.
36 changes: 35 additions & 1 deletion bin/utils/test_file_list.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
sha256: b98a6043573332de4f049db50b36bce7b5fada8511769da97f6561066a0f8c5c
- filename: "samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/linux-logo.png"
sha256: 0a67c32728197e942b13bdda064b73793f12f5c795f1e5cf35a3adf69c973230
# java okhttp gson test files
# java test files
- filename: "samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/ClientTest.java"
sha256: 325fdd5d7e2c97790c0fb44f712ab7b2ba022d7e1a5b0056f47b07f342682b6d
- filename: "samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/JSONTest.java"
Expand All @@ -15,3 +15,37 @@
sha256: 8b1b8f2a2ad00ccb090873a94a5f73e328b98317d2ec715f53bd7a1accb2a023
- filename: "samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/PetTest.java"
sha256: a1f8a70bf7b0c382a8def5bacf7b1fb189e687fabb40235aa799001e0597f545
- filename: "samples/client/echo_api/java/apache-httpclient/src/test/java/org/openapitools/client/api/AuthApiTest.java"
sha256: 26f2dd90f9075e51add1cd7e88869a1e9345d9dbacf01199c1bf8a49395a8648
- filename: "samples/client/echo_api/java/feign-gson/src/test/java/org/openapitools/client/api/AuthApiTest.java"
sha256: b45d2ff04ad65e39a4d67a86a37d1a406e125df392f51ef0484d6c8da8b10454
- filename: "samples/client/echo_api/java/okhttp-gson/src/test/java/org/openapitools/client/api/AuthApiTest.java"
sha256: 761d101afddb8920f640c91741b5e7af56ebd753c80d537e0aaa4e1021887666
- filename: "samples/client/echo_api/java/resteasy/src/test/java/org/openapitools/client/api/BodyApiTest.java"
sha256: 04715cabbe9bd27ff98dd56e3db489ebc9ffbf98d9af104a6707b0a40ab4f8fe
- filename: "samples/client/echo_api/java/resttemplate/src/test/java/org/openapitools/client/api/AuthApiTest.java"
sha256: fa45f446111823f02b9c8e8d010e3c1a28fc0f00a325e674da14d0e12296ea96
- filename: "samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/api/PetApiTest.java"
sha256: 24c6a39a9d7327d397dc038c368a19c84f14ed96a69fe28d53719b3eaf0a725c
- filename: "samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/api/PetApiTest.java"
sha256: 5e9f471d34310f94895751bb96cc79583376f043593c3a387c82077c70f8102f
- filename: "samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/MammalTest.java"
sha256: 67a9e63e13ebddac21cb236aa015edce30f5d3bd8d6adcf50044cad00d48c45e
- filename: "samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/ZebraTest.java"
sha256: 15eeb6d8a9a79d0f1930b861540d9c5780d6c49ea4fdb68269ac3e7ec481e142
- filename: "samples/client/petstore/java/okhttp-gson-3.1/src/test/java/org/openapitools/client/api/PetApiTest.java"
sha256: d8f7fff724f81e666daf115cc25f8347e1fda4e861aa30df0dae3fa50c91404c
- filename: "samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/api/PetApiTest.java"
sha256: 711a242b6257b87363c59b20dcaed45f9b146e2be246339a039a5d0338ad280c
- filename: "samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnlyTest.java"
sha256: 3a1add6f05f057c45b2ea489f619c3b455bf75e8e748fabd5487972b330ae2e6
- filename: "samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/api/PetApiTest.java"
sha256: 68ed9228c99ecf2ff3842074242d3be7565da3b702b7f46008a5e119ef15c167
- filename: "samples/openapi3/client/petstore/java/jersey2-java8-special-characters/src/test/java/org/openapitools/client/model/MySchemaNameCharactersTest.java"
sha256: f0a82dd21d10f199bc403241fc9c7f4a8fa5e2d1646fd06f7941c2e528a1da45
- filename: "samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/api/PetApiTest.java"
sha256: 5e9f471d34310f94895751bb96cc79583376f043593c3a387c82077c70f8102f
- filename: "samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/MammalTest.java"
sha256: 67a9e63e13ebddac21cb236aa015edce30f5d3bd8d6adcf50044cad00d48c45e
- filename: "samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ZebraTest.java"
sha256: 15eeb6d8a9a79d0f1930b861540d9c5780d6c49ea4fdb68269ac3e7ec481e142
Original file line number Diff line number Diff line change
Expand Up @@ -63,16 +63,5 @@ public void TestAuthHttpBasicTest()
//var response = instance.TestAuthHttpBasic();
//Assert.IsType<string>(response);
}

/// <summary>
/// Test TestAuthHttpBearer
/// </summary>
[Fact]
public void TestAuthHttpBearerTest()
{
// TODO uncomment below to test the method and replace null with proper value
//var response = instance.TestAuthHttpBearer();
//Assert.IsType<string>(response);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

using Org.OpenAPITools.Client;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Model;
// uncomment below to import models
//using Org.OpenAPITools.Model;

Expand Down Expand Up @@ -78,42 +79,6 @@ public void TestBodyApplicationOctetstreamBinaryTest()
//Assert.IsType<string>(response);
}

/// <summary>
/// Test TestBodyMultipartFormdataArrayOfBinary
/// </summary>
[Fact]
public void TestBodyMultipartFormdataArrayOfBinaryTest()
{
// TODO uncomment below to test the method and replace null with proper value
//List<System.IO.Stream> files = null;
//var response = instance.TestBodyMultipartFormdataArrayOfBinary(files);
//Assert.IsType<string>(response);
}

/// <summary>
/// Test TestBodyMultipartFormdataSingleBinary
/// </summary>
[Fact]
public void TestBodyMultipartFormdataSingleBinaryTest()
{
// TODO uncomment below to test the method and replace null with proper value
//System.IO.Stream? myFile = null;
//var response = instance.TestBodyMultipartFormdataSingleBinary(myFile);
//Assert.IsType<string>(response);
}

/// <summary>
/// Test TestEchoBodyAllOfPet
/// </summary>
[Fact]
public void TestEchoBodyAllOfPetTest()
{
// TODO uncomment below to test the method and replace null with proper value
//Pet? pet = null;
//var response = instance.TestEchoBodyAllOfPet(pet);
//Assert.IsType<Pet>(response);
}

/// <summary>
/// Test TestEchoBodyFreeFormObjectResponseString
/// </summary>
Expand All @@ -132,10 +97,9 @@ public void TestEchoBodyFreeFormObjectResponseStringTest()
[Fact]
public void TestEchoBodyPetTest()
{
// TODO uncomment below to test the method and replace null with proper value
//Pet? pet = null;
//var response = instance.TestEchoBodyPet(pet);
//Assert.IsType<Pet>(response);
Pet? pet = new Pet(123, "cat", new Category() { Id = 12, Name = "Test" }, new List<string>(){"http://google.com"},null, null);
var response = instance.TestEchoBodyPet(pet);
Assert.IsType<Pet>(response);
}

/// <summary>
Expand All @@ -150,18 +114,6 @@ public void TestEchoBodyPetResponseStringTest()
//Assert.IsType<string>(response);
}

/// <summary>
/// Test TestEchoBodyStringEnum
/// </summary>
[Fact]
public void TestEchoBodyStringEnumTest()
{
// TODO uncomment below to test the method and replace null with proper value
//string? body = null;
//var response = instance.TestEchoBodyStringEnum(body);
//Assert.IsType<StringEnumRef>(response);
}

/// <summary>
/// Test TestEchoBodyTagResponseString
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@

using Org.OpenAPITools.Client;
using Org.OpenAPITools.Api;
// uncomment below to import models
//using Org.OpenAPITools.Model;

namespace Org.OpenAPITools.Test.Api
{
Expand Down Expand Up @@ -68,34 +66,5 @@ public void TestFormIntegerBooleanStringTest()
//var response = instance.TestFormIntegerBooleanString(integerForm, booleanForm, stringForm);
//Assert.IsType<string>(response);
}

/// <summary>
/// Test TestFormObjectMultipart
/// </summary>
[Fact]
public void TestFormObjectMultipartTest()
{
// TODO uncomment below to test the method and replace null with proper value
//TestFormObjectMultipartRequestMarker marker = null;
//var response = instance.TestFormObjectMultipart(marker);
//Assert.IsType<string>(response);
}

/// <summary>
/// Test TestFormOneof
/// </summary>
[Fact]
public void TestFormOneofTest()
{
// TODO uncomment below to test the method and replace null with proper value
//string? form1 = null;
//int? form2 = null;
//string? form3 = null;
//bool? form4 = null;
//long? id = null;
//string? name = null;
//var response = instance.TestFormOneof(form1, form2, form3, form4, id, name);
//Assert.IsType<string>(response);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@

using Org.OpenAPITools.Client;
using Org.OpenAPITools.Api;
// uncomment below to import models
//using Org.OpenAPITools.Model;

namespace Org.OpenAPITools.Test.Api
{
Expand Down Expand Up @@ -56,18 +54,16 @@ public void InstanceTest()
}

/// <summary>
/// Test TestHeaderIntegerBooleanStringEnums
/// Test TestHeaderIntegerBooleanString
/// </summary>
[Fact]
public void TestHeaderIntegerBooleanStringEnumsTest()
public void TestHeaderIntegerBooleanStringTest()
{
// TODO uncomment below to test the method and replace null with proper value
//int? integerHeader = null;
//bool? booleanHeader = null;
//string? stringHeader = null;
//string? enumNonrefStringHeader = null;
//StringEnumRef? enumRefStringHeader = null;
//var response = instance.TestHeaderIntegerBooleanStringEnums(integerHeader, booleanHeader, stringHeader, enumNonrefStringHeader, enumRefStringHeader);
//var response = instance.TestHeaderIntegerBooleanString(integerHeader, booleanHeader, stringHeader);
//Assert.IsType<string>(response);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@

using Org.OpenAPITools.Client;
using Org.OpenAPITools.Api;
// uncomment below to import models
//using Org.OpenAPITools.Model;

namespace Org.OpenAPITools.Test.Api
{
Expand Down Expand Up @@ -56,17 +54,15 @@ public void InstanceTest()
}

/// <summary>
/// Test TestsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath
/// Test TestsPathStringPathStringIntegerPathInteger
/// </summary>
[Fact]
public void TestsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPathTest()
public void TestsPathStringPathStringIntegerPathIntegerTest()
{
// TODO uncomment below to test the method and replace null with proper value
//string pathString = null;
//int pathInteger = null;
//string enumNonrefStringPath = null;
//StringEnumRef enumRefStringPath = null;
//var response = instance.TestsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath(pathString, pathInteger, enumNonrefStringPath, enumRefStringPath);
//var response = instance.TestsPathStringPathStringIntegerPathInteger(pathString, pathInteger);
//Assert.IsType<string>(response);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,8 @@ public void InstanceTest()
public void TestEnumRefStringTest()
{
// TODO uncomment below to test the method and replace null with proper value
//string? enumNonrefStringQuery = null;
//StringEnumRef? enumRefStringQuery = null;
//var response = instance.TestEnumRefString(enumNonrefStringQuery, enumRefStringQuery);
//var response = instance.TestEnumRefString(enumRefStringQuery);
//Assert.IsType<string>(response);
}

Expand All @@ -76,7 +75,7 @@ public void TestQueryDatetimeDateStringTest()
{
// TODO uncomment below to test the method and replace null with proper value
//DateTime? datetimeQuery = null;
//DateOnly? dateQuery = null;
//DateTime? dateQuery = null;
//string? stringQuery = null;
//var response = instance.TestQueryDatetimeDateString(datetimeQuery, dateQuery, stringQuery);
//Assert.IsType<string>(response);
Expand Down Expand Up @@ -120,30 +119,6 @@ public void TestQueryStyleDeepObjectExplodeTrueObjectAllOfTest()
//Assert.IsType<string>(response);
}

/// <summary>
/// Test TestQueryStyleFormExplodeFalseArrayInteger
/// </summary>
[Fact]
public void TestQueryStyleFormExplodeFalseArrayIntegerTest()
{
// TODO uncomment below to test the method and replace null with proper value
//List<int>? queryObject = null;
//var response = instance.TestQueryStyleFormExplodeFalseArrayInteger(queryObject);
//Assert.IsType<string>(response);
}

/// <summary>
/// Test TestQueryStyleFormExplodeFalseArrayString
/// </summary>
[Fact]
public void TestQueryStyleFormExplodeFalseArrayStringTest()
{
// TODO uncomment below to test the method and replace null with proper value
//List<string>? queryObject = null;
//var response = instance.TestQueryStyleFormExplodeFalseArrayString(queryObject);
//Assert.IsType<string>(response);
}

/// <summary>
/// Test TestQueryStyleFormExplodeTrueArrayString
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,21 +65,21 @@ public void NumberTest()
}

/// <summary>
/// Test the property 'Float'
/// Test the property 'VarFloat'
/// </summary>
[Fact]
public void FloatTest()
public void VarFloatTest()
{
// TODO unit test for the property 'Float'
// TODO unit test for the property 'VarFloat'
}

/// <summary>
/// Test the property 'Double'
/// Test the property 'VarDouble'
/// </summary>
[Fact]
public void DoubleTest()
public void VarDoubleTest()
{
// TODO unit test for the property 'Double'
// TODO unit test for the property 'VarDouble'
}
}
}
Loading

0 comments on commit 178d47b

Please sign in to comment.