upgrade okhttp-gson and google-api-client to junit5 (#18668)

* upgrade okhttp-gson and google-api-client to junit5

* add changes in StringUtilTest

* use https instead of http to fix 301 (moved) error

* revert petstore test server url to http://petstore.swagger.io and regenerate samples

* synced gradle/sbt/pom, re-generated samples

* revert removal of port 80 from test url

* udpate google api client tests

* update sha

* update comment

---------

Co-authored-by: Thorsten Hirsch <t.hirsch@web.de>
This commit is contained in:
William Cheng
2024-05-14 17:04:33 +08:00
committed by GitHub
parent ed33b86205
commit 09be19cef7
99 changed files with 593 additions and 567 deletions

View File

@@ -11,8 +11,8 @@ import org.openapitools.client.auth.*;
import java.math.BigDecimal;
import org.openapitools.client.model.*;
import org.junit.Assert;
import org.junit.Test;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
public class ClientTest {
ApiClient apiClient;
@@ -48,7 +48,7 @@ public class ClientTest {
model2.setArrayArrayNumber(new ArrayList<List<BigDecimal>>());
model2.getArrayArrayNumber().add(arrayArrayNumber2);
Assert.assertTrue(model2.equals(model));
Assertions.assertTrue(model2.equals(model));
}
/**
@@ -65,6 +65,6 @@ public class ClientTest {
model2.setId(1029L);
model2.setName("Dog");
Assert.assertTrue(model.equals(model2));
Assertions.assertTrue(model.equals(model2));
}
}