Skip to content

Commit e5ca6cd

Browse files
committed
revert overwriting custom tests, add custom java tests to list
1 parent 5c8f772 commit e5ca6cd

File tree

505 files changed

+6272
-5417
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

505 files changed

+6272
-5417
lines changed

bin/utils/test_file_list.yaml

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
sha256: b98a6043573332de4f049db50b36bce7b5fada8511769da97f6561066a0f8c5c
77
- filename: "samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/linux-logo.png"
88
sha256: 0a67c32728197e942b13bdda064b73793f12f5c795f1e5cf35a3adf69c973230
9-
# java okhttp gson test files
9+
# java test files
1010
- filename: "samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/ClientTest.java"
1111
sha256: 325fdd5d7e2c97790c0fb44f712ab7b2ba022d7e1a5b0056f47b07f342682b6d
1212
- filename: "samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/JSONTest.java"
@@ -15,3 +15,37 @@
1515
sha256: 8b1b8f2a2ad00ccb090873a94a5f73e328b98317d2ec715f53bd7a1accb2a023
1616
- filename: "samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/PetTest.java"
1717
sha256: a1f8a70bf7b0c382a8def5bacf7b1fb189e687fabb40235aa799001e0597f545
18+
- filename: "samples/client/echo_api/java/apache-httpclient/src/test/java/org/openapitools/client/api/AuthApiTest.java"
19+
sha256: 26f2dd90f9075e51add1cd7e88869a1e9345d9dbacf01199c1bf8a49395a8648
20+
- filename: "samples/client/echo_api/java/feign-gson/src/test/java/org/openapitools/client/api/AuthApiTest.java"
21+
sha256: b45d2ff04ad65e39a4d67a86a37d1a406e125df392f51ef0484d6c8da8b10454
22+
- filename: "samples/client/echo_api/java/okhttp-gson/src/test/java/org/openapitools/client/api/AuthApiTest.java"
23+
sha256: 761d101afddb8920f640c91741b5e7af56ebd753c80d537e0aaa4e1021887666
24+
- filename: "samples/client/echo_api/java/resteasy/src/test/java/org/openapitools/client/api/BodyApiTest.java"
25+
sha256: 04715cabbe9bd27ff98dd56e3db489ebc9ffbf98d9af104a6707b0a40ab4f8fe
26+
- filename: "samples/client/echo_api/java/resttemplate/src/test/java/org/openapitools/client/api/AuthApiTest.java"
27+
sha256: fa45f446111823f02b9c8e8d010e3c1a28fc0f00a325e674da14d0e12296ea96
28+
- filename: "samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/api/PetApiTest.java"
29+
sha256: 24c6a39a9d7327d397dc038c368a19c84f14ed96a69fe28d53719b3eaf0a725c
30+
- filename: "samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/api/PetApiTest.java"
31+
sha256: 5e9f471d34310f94895751bb96cc79583376f043593c3a387c82077c70f8102f
32+
- filename: "samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/MammalTest.java"
33+
sha256: 67a9e63e13ebddac21cb236aa015edce30f5d3bd8d6adcf50044cad00d48c45e
34+
- filename: "samples/client/petstore/java/jersey3/src/test/java/org/openapitools/client/model/ZebraTest.java"
35+
sha256: 15eeb6d8a9a79d0f1930b861540d9c5780d6c49ea4fdb68269ac3e7ec481e142
36+
- filename: "samples/client/petstore/java/okhttp-gson-3.1/src/test/java/org/openapitools/client/api/PetApiTest.java"
37+
sha256: d8f7fff724f81e666daf115cc25f8347e1fda4e861aa30df0dae3fa50c91404c
38+
- filename: "samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/api/PetApiTest.java"
39+
sha256: 711a242b6257b87363c59b20dcaed45f9b146e2be246339a039a5d0338ad280c
40+
- filename: "samples/client/petstore/java/okhttp-gson-dynamicOperations/src/test/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnlyTest.java"
41+
sha256: 3a1add6f05f057c45b2ea489f619c3b455bf75e8e748fabd5487972b330ae2e6
42+
- filename: "samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/api/PetApiTest.java"
43+
sha256: 68ed9228c99ecf2ff3842074242d3be7565da3b702b7f46008a5e119ef15c167
44+
- filename: "samples/openapi3/client/petstore/java/jersey2-java8-special-characters/src/test/java/org/openapitools/client/model/MySchemaNameCharactersTest.java"
45+
sha256: f0a82dd21d10f199bc403241fc9c7f4a8fa5e2d1646fd06f7941c2e528a1da45
46+
- filename: "samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/api/PetApiTest.java"
47+
sha256: 5e9f471d34310f94895751bb96cc79583376f043593c3a387c82077c70f8102f
48+
- filename: "samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/MammalTest.java"
49+
sha256: 67a9e63e13ebddac21cb236aa015edce30f5d3bd8d6adcf50044cad00d48c45e
50+
- filename: "samples/openapi3/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model/ZebraTest.java"
51+
sha256: 15eeb6d8a9a79d0f1930b861540d9c5780d6c49ea4fdb68269ac3e7ec481e142

samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools.Test/Api/AuthApiTests.cs

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -63,16 +63,5 @@ public void TestAuthHttpBasicTest()
6363
//var response = instance.TestAuthHttpBasic();
6464
//Assert.IsType<string>(response);
6565
}
66-
67-
/// <summary>
68-
/// Test TestAuthHttpBearer
69-
/// </summary>
70-
[Fact]
71-
public void TestAuthHttpBearerTest()
72-
{
73-
// TODO uncomment below to test the method and replace null with proper value
74-
//var response = instance.TestAuthHttpBearer();
75-
//Assert.IsType<string>(response);
76-
}
7766
}
7867
}

samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools.Test/Api/BodyApiTests.cs

Lines changed: 4 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919

2020
using Org.OpenAPITools.Client;
2121
using Org.OpenAPITools.Api;
22+
using Org.OpenAPITools.Model;
2223
// uncomment below to import models
2324
//using Org.OpenAPITools.Model;
2425

@@ -78,42 +79,6 @@ public void TestBodyApplicationOctetstreamBinaryTest()
7879
//Assert.IsType<string>(response);
7980
}
8081

81-
/// <summary>
82-
/// Test TestBodyMultipartFormdataArrayOfBinary
83-
/// </summary>
84-
[Fact]
85-
public void TestBodyMultipartFormdataArrayOfBinaryTest()
86-
{
87-
// TODO uncomment below to test the method and replace null with proper value
88-
//List<System.IO.Stream> files = null;
89-
//var response = instance.TestBodyMultipartFormdataArrayOfBinary(files);
90-
//Assert.IsType<string>(response);
91-
}
92-
93-
/// <summary>
94-
/// Test TestBodyMultipartFormdataSingleBinary
95-
/// </summary>
96-
[Fact]
97-
public void TestBodyMultipartFormdataSingleBinaryTest()
98-
{
99-
// TODO uncomment below to test the method and replace null with proper value
100-
//System.IO.Stream? myFile = null;
101-
//var response = instance.TestBodyMultipartFormdataSingleBinary(myFile);
102-
//Assert.IsType<string>(response);
103-
}
104-
105-
/// <summary>
106-
/// Test TestEchoBodyAllOfPet
107-
/// </summary>
108-
[Fact]
109-
public void TestEchoBodyAllOfPetTest()
110-
{
111-
// TODO uncomment below to test the method and replace null with proper value
112-
//Pet? pet = null;
113-
//var response = instance.TestEchoBodyAllOfPet(pet);
114-
//Assert.IsType<Pet>(response);
115-
}
116-
11782
/// <summary>
11883
/// Test TestEchoBodyFreeFormObjectResponseString
11984
/// </summary>
@@ -132,10 +97,9 @@ public void TestEchoBodyFreeFormObjectResponseStringTest()
13297
[Fact]
13398
public void TestEchoBodyPetTest()
13499
{
135-
// TODO uncomment below to test the method and replace null with proper value
136-
//Pet? pet = null;
137-
//var response = instance.TestEchoBodyPet(pet);
138-
//Assert.IsType<Pet>(response);
100+
Pet? pet = new Pet(123, "cat", new Category() { Id = 12, Name = "Test" }, new List<string>(){"http://google.com"},null, null);
101+
var response = instance.TestEchoBodyPet(pet);
102+
Assert.IsType<Pet>(response);
139103
}
140104

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

153-
/// <summary>
154-
/// Test TestEchoBodyStringEnum
155-
/// </summary>
156-
[Fact]
157-
public void TestEchoBodyStringEnumTest()
158-
{
159-
// TODO uncomment below to test the method and replace null with proper value
160-
//string? body = null;
161-
//var response = instance.TestEchoBodyStringEnum(body);
162-
//Assert.IsType<StringEnumRef>(response);
163-
}
164-
165117
/// <summary>
166118
/// Test TestEchoBodyTagResponseString
167119
/// </summary>

samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools.Test/Api/FormApiTests.cs

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@
1919

2020
using Org.OpenAPITools.Client;
2121
using Org.OpenAPITools.Api;
22-
// uncomment below to import models
23-
//using Org.OpenAPITools.Model;
2422

2523
namespace Org.OpenAPITools.Test.Api
2624
{
@@ -68,34 +66,5 @@ public void TestFormIntegerBooleanStringTest()
6866
//var response = instance.TestFormIntegerBooleanString(integerForm, booleanForm, stringForm);
6967
//Assert.IsType<string>(response);
7068
}
71-
72-
/// <summary>
73-
/// Test TestFormObjectMultipart
74-
/// </summary>
75-
[Fact]
76-
public void TestFormObjectMultipartTest()
77-
{
78-
// TODO uncomment below to test the method and replace null with proper value
79-
//TestFormObjectMultipartRequestMarker marker = null;
80-
//var response = instance.TestFormObjectMultipart(marker);
81-
//Assert.IsType<string>(response);
82-
}
83-
84-
/// <summary>
85-
/// Test TestFormOneof
86-
/// </summary>
87-
[Fact]
88-
public void TestFormOneofTest()
89-
{
90-
// TODO uncomment below to test the method and replace null with proper value
91-
//string? form1 = null;
92-
//int? form2 = null;
93-
//string? form3 = null;
94-
//bool? form4 = null;
95-
//long? id = null;
96-
//string? name = null;
97-
//var response = instance.TestFormOneof(form1, form2, form3, form4, id, name);
98-
//Assert.IsType<string>(response);
99-
}
10069
}
10170
}

samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools.Test/Api/HeaderApiTests.cs

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@
1919

2020
using Org.OpenAPITools.Client;
2121
using Org.OpenAPITools.Api;
22-
// uncomment below to import models
23-
//using Org.OpenAPITools.Model;
2422

2523
namespace Org.OpenAPITools.Test.Api
2624
{
@@ -56,18 +54,16 @@ public void InstanceTest()
5654
}
5755

5856
/// <summary>
59-
/// Test TestHeaderIntegerBooleanStringEnums
57+
/// Test TestHeaderIntegerBooleanString
6058
/// </summary>
6159
[Fact]
62-
public void TestHeaderIntegerBooleanStringEnumsTest()
60+
public void TestHeaderIntegerBooleanStringTest()
6361
{
6462
// TODO uncomment below to test the method and replace null with proper value
6563
//int? integerHeader = null;
6664
//bool? booleanHeader = null;
6765
//string? stringHeader = null;
68-
//string? enumNonrefStringHeader = null;
69-
//StringEnumRef? enumRefStringHeader = null;
70-
//var response = instance.TestHeaderIntegerBooleanStringEnums(integerHeader, booleanHeader, stringHeader, enumNonrefStringHeader, enumRefStringHeader);
66+
//var response = instance.TestHeaderIntegerBooleanString(integerHeader, booleanHeader, stringHeader);
7167
//Assert.IsType<string>(response);
7268
}
7369
}

samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools.Test/Api/PathApiTests.cs

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@
1919

2020
using Org.OpenAPITools.Client;
2121
using Org.OpenAPITools.Api;
22-
// uncomment below to import models
23-
//using Org.OpenAPITools.Model;
2422

2523
namespace Org.OpenAPITools.Test.Api
2624
{
@@ -56,17 +54,15 @@ public void InstanceTest()
5654
}
5755

5856
/// <summary>
59-
/// Test TestsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath
57+
/// Test TestsPathStringPathStringIntegerPathInteger
6058
/// </summary>
6159
[Fact]
62-
public void TestsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPathTest()
60+
public void TestsPathStringPathStringIntegerPathIntegerTest()
6361
{
6462
// TODO uncomment below to test the method and replace null with proper value
6563
//string pathString = null;
6664
//int pathInteger = null;
67-
//string enumNonrefStringPath = null;
68-
//StringEnumRef enumRefStringPath = null;
69-
//var response = instance.TestsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath(pathString, pathInteger, enumNonrefStringPath, enumRefStringPath);
65+
//var response = instance.TestsPathStringPathStringIntegerPathInteger(pathString, pathInteger);
7066
//Assert.IsType<string>(response);
7167
}
7268
}

samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools.Test/Api/QueryApiTests.cs

Lines changed: 2 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,8 @@ public void InstanceTest()
6262
public void TestEnumRefStringTest()
6363
{
6464
// TODO uncomment below to test the method and replace null with proper value
65-
//string? enumNonrefStringQuery = null;
6665
//StringEnumRef? enumRefStringQuery = null;
67-
//var response = instance.TestEnumRefString(enumNonrefStringQuery, enumRefStringQuery);
66+
//var response = instance.TestEnumRefString(enumRefStringQuery);
6867
//Assert.IsType<string>(response);
6968
}
7069

@@ -76,7 +75,7 @@ public void TestQueryDatetimeDateStringTest()
7675
{
7776
// TODO uncomment below to test the method and replace null with proper value
7877
//DateTime? datetimeQuery = null;
79-
//DateOnly? dateQuery = null;
78+
//DateTime? dateQuery = null;
8079
//string? stringQuery = null;
8180
//var response = instance.TestQueryDatetimeDateString(datetimeQuery, dateQuery, stringQuery);
8281
//Assert.IsType<string>(response);
@@ -120,30 +119,6 @@ public void TestQueryStyleDeepObjectExplodeTrueObjectAllOfTest()
120119
//Assert.IsType<string>(response);
121120
}
122121

123-
/// <summary>
124-
/// Test TestQueryStyleFormExplodeFalseArrayInteger
125-
/// </summary>
126-
[Fact]
127-
public void TestQueryStyleFormExplodeFalseArrayIntegerTest()
128-
{
129-
// TODO uncomment below to test the method and replace null with proper value
130-
//List<int>? queryObject = null;
131-
//var response = instance.TestQueryStyleFormExplodeFalseArrayInteger(queryObject);
132-
//Assert.IsType<string>(response);
133-
}
134-
135-
/// <summary>
136-
/// Test TestQueryStyleFormExplodeFalseArrayString
137-
/// </summary>
138-
[Fact]
139-
public void TestQueryStyleFormExplodeFalseArrayStringTest()
140-
{
141-
// TODO uncomment below to test the method and replace null with proper value
142-
//List<string>? queryObject = null;
143-
//var response = instance.TestQueryStyleFormExplodeFalseArrayString(queryObject);
144-
//Assert.IsType<string>(response);
145-
}
146-
147122
/// <summary>
148123
/// Test TestQueryStyleFormExplodeTrueArrayString
149124
/// </summary>

samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools.Test/Model/NumberPropertiesOnlyTests.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,21 +65,21 @@ public void NumberTest()
6565
}
6666

6767
/// <summary>
68-
/// Test the property 'Float'
68+
/// Test the property 'VarFloat'
6969
/// </summary>
7070
[Fact]
71-
public void FloatTest()
71+
public void VarFloatTest()
7272
{
73-
// TODO unit test for the property 'Float'
73+
// TODO unit test for the property 'VarFloat'
7474
}
7575

7676
/// <summary>
77-
/// Test the property 'Double'
77+
/// Test the property 'VarDouble'
7878
/// </summary>
7979
[Fact]
80-
public void DoubleTest()
80+
public void VarDoubleTest()
8181
{
82-
// TODO unit test for the property 'Double'
82+
// TODO unit test for the property 'VarDouble'
8383
}
8484
}
8585
}

0 commit comments

Comments
 (0)