mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-06 10:56:10 +00:00
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:
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user