diff --git a/samples/client/petstore/java/jersey2-java8/README.md b/samples/client/petstore/java/jersey2-java8/README.md index 239435967768d..3aabcf875b2a3 100644 --- a/samples/client/petstore/java/jersey2-java8/README.md +++ b/samples/client/petstore/java/jersey2-java8/README.md @@ -115,7 +115,7 @@ public class AnotherFakeApiExample { public static void main(String[] args) { ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://petstore.swagger.io:80/v2"); + defaultClient.setBasePath("https://petstore.swagger.io/v2"); AnotherFakeApi apiInstance = new AnotherFakeApi(defaultClient); UUID uuidTest = UUID.randomUUID(); // UUID | to test uuid example value @@ -137,7 +137,7 @@ public class AnotherFakeApiExample { ## Documentation for API Endpoints -All URIs are relative to *http://petstore.swagger.io:80/v2* +All URIs are relative to *https://petstore.swagger.io/v2* Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- @@ -240,7 +240,7 @@ Authentication schemes defined for the API: - **Type**: OAuth - **Flow**: implicit -- **Authorization URL**: http://petstore.swagger.io/api/oauth/dialog +- **Authorization URL**: https://petstore.swagger.io/api/oauth/dialog - **Scopes**: - write:pets: modify pets in your account - read:pets: read your pets diff --git a/samples/client/petstore/java/jersey2-java8/api/openapi.yaml b/samples/client/petstore/java/jersey2-java8/api/openapi.yaml index de407d13b2cf3..bfdfb8f0db497 100644 --- a/samples/client/petstore/java/jersey2-java8/api/openapi.yaml +++ b/samples/client/petstore/java/jersey2-java8/api/openapi.yaml @@ -9,7 +9,7 @@ info: title: OpenAPI Petstore version: 1.0.0 servers: -- url: http://petstore.swagger.io:80/v2 +- url: https://petstore.swagger.io/v2 tags: - description: Everything about your Pets name: pet @@ -2235,7 +2235,7 @@ components: petstore_auth: flows: implicit: - authorizationUrl: http://petstore.swagger.io/api/oauth/dialog + authorizationUrl: https://petstore.swagger.io/api/oauth/dialog scopes: write:pets: modify pets in your account read:pets: read your pets diff --git a/samples/client/petstore/java/jersey2-java8/docs/AnotherFakeApi.md b/samples/client/petstore/java/jersey2-java8/docs/AnotherFakeApi.md index 78dd3d69d407e..2e80ac773f6f5 100644 --- a/samples/client/petstore/java/jersey2-java8/docs/AnotherFakeApi.md +++ b/samples/client/petstore/java/jersey2-java8/docs/AnotherFakeApi.md @@ -1,6 +1,6 @@ # AnotherFakeApi -All URIs are relative to *http://petstore.swagger.io:80/v2* +All URIs are relative to *https://petstore.swagger.io/v2* | Method | HTTP request | Description | |------------- | ------------- | -------------| @@ -30,7 +30,7 @@ import org.openapitools.client.api.AnotherFakeApi; public class Example { public static void main(String[] args) { ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://petstore.swagger.io:80/v2"); + defaultClient.setBasePath("https://petstore.swagger.io/v2"); AnotherFakeApi apiInstance = new AnotherFakeApi(defaultClient); UUID uuidTest = UUID.randomUUID(); // UUID | to test uuid example value diff --git a/samples/client/petstore/java/jersey2-java8/docs/FakeApi.md b/samples/client/petstore/java/jersey2-java8/docs/FakeApi.md index 84167f65462a0..cdf607bbd5546 100644 --- a/samples/client/petstore/java/jersey2-java8/docs/FakeApi.md +++ b/samples/client/petstore/java/jersey2-java8/docs/FakeApi.md @@ -1,6 +1,6 @@ # FakeApi -All URIs are relative to *http://petstore.swagger.io:80/v2* +All URIs are relative to *https://petstore.swagger.io/v2* | Method | HTTP request | Description | |------------- | ------------- | -------------| @@ -42,7 +42,7 @@ import org.openapitools.client.api.FakeApi; public class Example { public static void main(String[] args) { ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://petstore.swagger.io:80/v2"); + defaultClient.setBasePath("https://petstore.swagger.io/v2"); FakeApi apiInstance = new FakeApi(defaultClient); XmlItem xmlItem = new XmlItem(); // XmlItem | XmlItem Body @@ -106,7 +106,7 @@ import org.openapitools.client.api.FakeApi; public class Example { public static void main(String[] args) { ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://petstore.swagger.io:80/v2"); + defaultClient.setBasePath("https://petstore.swagger.io/v2"); FakeApi apiInstance = new FakeApi(defaultClient); Boolean body = true; // Boolean | Input boolean as post body @@ -171,7 +171,7 @@ import org.openapitools.client.api.FakeApi; public class Example { public static void main(String[] args) { ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://petstore.swagger.io:80/v2"); + defaultClient.setBasePath("https://petstore.swagger.io/v2"); FakeApi apiInstance = new FakeApi(defaultClient); OuterComposite body = new OuterComposite(); // OuterComposite | Input composite as post body @@ -237,7 +237,7 @@ import org.openapitools.client.api.FakeApi; public class Example { public static void main(String[] args) { ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://petstore.swagger.io:80/v2"); + defaultClient.setBasePath("https://petstore.swagger.io/v2"); FakeApi apiInstance = new FakeApi(defaultClient); BigDecimal body = new BigDecimal(78); // BigDecimal | Input number as post body @@ -302,7 +302,7 @@ import org.openapitools.client.api.FakeApi; public class Example { public static void main(String[] args) { ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://petstore.swagger.io:80/v2"); + defaultClient.setBasePath("https://petstore.swagger.io/v2"); FakeApi apiInstance = new FakeApi(defaultClient); String body = "body_example"; // String | Input string as post body @@ -367,7 +367,7 @@ import org.openapitools.client.api.FakeApi; public class Example { public static void main(String[] args) { ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://petstore.swagger.io:80/v2"); + defaultClient.setBasePath("https://petstore.swagger.io/v2"); FakeApi apiInstance = new FakeApi(defaultClient); FileSchemaTestClass body = new FileSchemaTestClass(); // FileSchemaTestClass | @@ -429,7 +429,7 @@ import org.openapitools.client.api.FakeApi; public class Example { public static void main(String[] args) { ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://petstore.swagger.io:80/v2"); + defaultClient.setBasePath("https://petstore.swagger.io/v2"); FakeApi apiInstance = new FakeApi(defaultClient); String query = "query_example"; // String | @@ -495,7 +495,7 @@ import org.openapitools.client.api.FakeApi; public class Example { public static void main(String[] args) { ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://petstore.swagger.io:80/v2"); + defaultClient.setBasePath("https://petstore.swagger.io/v2"); FakeApi apiInstance = new FakeApi(defaultClient); Client body = new Client(); // Client | client model @@ -568,7 +568,7 @@ import org.openapitools.client.api.FakeApi; public class Example { public static void main(String[] args) { ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://petstore.swagger.io:80/v2"); + defaultClient.setBasePath("https://petstore.swagger.io/v2"); // Configure HTTP basic authorization: http_basic_test HttpBasicAuth http_basic_test = (HttpBasicAuth) defaultClient.getAuthentication("http_basic_test"); @@ -664,7 +664,7 @@ import org.openapitools.client.api.FakeApi; public class Example { public static void main(String[] args) { ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://petstore.swagger.io:80/v2"); + defaultClient.setBasePath("https://petstore.swagger.io/v2"); FakeApi apiInstance = new FakeApi(defaultClient); List enumHeaderStringArray = Arrays.asList("$"); // List | Header parameter enum test (string array) @@ -743,7 +743,7 @@ import org.openapitools.client.api.FakeApi; public class Example { public static void main(String[] args) { ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://petstore.swagger.io:80/v2"); + defaultClient.setBasePath("https://petstore.swagger.io/v2"); FakeApi apiInstance = new FakeApi(defaultClient); Integer requiredStringGroup = 56; // Integer | Required String in group parameters @@ -822,7 +822,7 @@ import org.openapitools.client.api.FakeApi; public class Example { public static void main(String[] args) { ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://petstore.swagger.io:80/v2"); + defaultClient.setBasePath("https://petstore.swagger.io/v2"); FakeApi apiInstance = new FakeApi(defaultClient); Map param = new HashMap(); // Map | request body @@ -884,7 +884,7 @@ import org.openapitools.client.api.FakeApi; public class Example { public static void main(String[] args) { ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://petstore.swagger.io:80/v2"); + defaultClient.setBasePath("https://petstore.swagger.io/v2"); FakeApi apiInstance = new FakeApi(defaultClient); String param = "param_example"; // String | field1 @@ -950,7 +950,7 @@ import org.openapitools.client.api.FakeApi; public class Example { public static void main(String[] args) { ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://petstore.swagger.io:80/v2"); + defaultClient.setBasePath("https://petstore.swagger.io/v2"); FakeApi apiInstance = new FakeApi(defaultClient); List pipe = Arrays.asList(); // List | diff --git a/samples/client/petstore/java/jersey2-java8/docs/FakeClassnameTags123Api.md b/samples/client/petstore/java/jersey2-java8/docs/FakeClassnameTags123Api.md index 77a56bad6f353..a346796a0a997 100644 --- a/samples/client/petstore/java/jersey2-java8/docs/FakeClassnameTags123Api.md +++ b/samples/client/petstore/java/jersey2-java8/docs/FakeClassnameTags123Api.md @@ -1,6 +1,6 @@ # FakeClassnameTags123Api -All URIs are relative to *http://petstore.swagger.io:80/v2* +All URIs are relative to *https://petstore.swagger.io/v2* | Method | HTTP request | Description | |------------- | ------------- | -------------| @@ -30,7 +30,7 @@ import org.openapitools.client.api.FakeClassnameTags123Api; public class Example { public static void main(String[] args) { ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://petstore.swagger.io:80/v2"); + defaultClient.setBasePath("https://petstore.swagger.io/v2"); // Configure API key authorization: api_key_query ApiKeyAuth api_key_query = (ApiKeyAuth) defaultClient.getAuthentication("api_key_query"); diff --git a/samples/client/petstore/java/jersey2-java8/docs/PetApi.md b/samples/client/petstore/java/jersey2-java8/docs/PetApi.md index 57e78be6d9e5f..1cde416584af0 100644 --- a/samples/client/petstore/java/jersey2-java8/docs/PetApi.md +++ b/samples/client/petstore/java/jersey2-java8/docs/PetApi.md @@ -1,6 +1,6 @@ # PetApi -All URIs are relative to *http://petstore.swagger.io:80/v2* +All URIs are relative to *https://petstore.swagger.io/v2* | Method | HTTP request | Description | |------------- | ------------- | -------------| @@ -36,7 +36,7 @@ import org.openapitools.client.api.PetApi; public class Example { public static void main(String[] args) { ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://petstore.swagger.io:80/v2"); + defaultClient.setBasePath("https://petstore.swagger.io/v2"); // Configure OAuth2 access token for authorization: petstore_auth OAuth petstore_auth = (OAuth) defaultClient.getAuthentication("petstore_auth"); @@ -104,7 +104,7 @@ import org.openapitools.client.api.PetApi; public class Example { public static void main(String[] args) { ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://petstore.swagger.io:80/v2"); + defaultClient.setBasePath("https://petstore.swagger.io/v2"); // Configure OAuth2 access token for authorization: petstore_auth OAuth petstore_auth = (OAuth) defaultClient.getAuthentication("petstore_auth"); @@ -176,7 +176,7 @@ import org.openapitools.client.api.PetApi; public class Example { public static void main(String[] args) { ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://petstore.swagger.io:80/v2"); + defaultClient.setBasePath("https://petstore.swagger.io/v2"); // Configure OAuth2 access token for authorization: petstore_auth OAuth petstore_auth = (OAuth) defaultClient.getAuthentication("petstore_auth"); @@ -247,7 +247,7 @@ import org.openapitools.client.api.PetApi; public class Example { public static void main(String[] args) { ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://petstore.swagger.io:80/v2"); + defaultClient.setBasePath("https://petstore.swagger.io/v2"); // Configure OAuth2 access token for authorization: petstore_auth OAuth petstore_auth = (OAuth) defaultClient.getAuthentication("petstore_auth"); @@ -318,7 +318,7 @@ import org.openapitools.client.api.PetApi; public class Example { public static void main(String[] args) { ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://petstore.swagger.io:80/v2"); + defaultClient.setBasePath("https://petstore.swagger.io/v2"); // Configure API key authorization: api_key ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key"); @@ -390,7 +390,7 @@ import org.openapitools.client.api.PetApi; public class Example { public static void main(String[] args) { ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://petstore.swagger.io:80/v2"); + defaultClient.setBasePath("https://petstore.swagger.io/v2"); // Configure OAuth2 access token for authorization: petstore_auth OAuth petstore_auth = (OAuth) defaultClient.getAuthentication("petstore_auth"); @@ -460,7 +460,7 @@ import org.openapitools.client.api.PetApi; public class Example { public static void main(String[] args) { ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://petstore.swagger.io:80/v2"); + defaultClient.setBasePath("https://petstore.swagger.io/v2"); // Configure OAuth2 access token for authorization: petstore_auth OAuth petstore_auth = (OAuth) defaultClient.getAuthentication("petstore_auth"); @@ -532,7 +532,7 @@ import org.openapitools.client.api.PetApi; public class Example { public static void main(String[] args) { ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://petstore.swagger.io:80/v2"); + defaultClient.setBasePath("https://petstore.swagger.io/v2"); // Configure OAuth2 access token for authorization: petstore_auth OAuth petstore_auth = (OAuth) defaultClient.getAuthentication("petstore_auth"); @@ -605,7 +605,7 @@ import org.openapitools.client.api.PetApi; public class Example { public static void main(String[] args) { ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://petstore.swagger.io:80/v2"); + defaultClient.setBasePath("https://petstore.swagger.io/v2"); // Configure OAuth2 access token for authorization: petstore_auth OAuth petstore_auth = (OAuth) defaultClient.getAuthentication("petstore_auth"); diff --git a/samples/client/petstore/java/jersey2-java8/docs/StoreApi.md b/samples/client/petstore/java/jersey2-java8/docs/StoreApi.md index e0b1be10cdf49..46c5a731a7f70 100644 --- a/samples/client/petstore/java/jersey2-java8/docs/StoreApi.md +++ b/samples/client/petstore/java/jersey2-java8/docs/StoreApi.md @@ -1,6 +1,6 @@ # StoreApi -All URIs are relative to *http://petstore.swagger.io:80/v2* +All URIs are relative to *https://petstore.swagger.io/v2* | Method | HTTP request | Description | |------------- | ------------- | -------------| @@ -32,7 +32,7 @@ import org.openapitools.client.api.StoreApi; public class Example { public static void main(String[] args) { ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://petstore.swagger.io:80/v2"); + defaultClient.setBasePath("https://petstore.swagger.io/v2"); StoreApi apiInstance = new StoreApi(defaultClient); String orderId = "orderId_example"; // String | ID of the order that needs to be deleted @@ -98,7 +98,7 @@ import org.openapitools.client.api.StoreApi; public class Example { public static void main(String[] args) { ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://petstore.swagger.io:80/v2"); + defaultClient.setBasePath("https://petstore.swagger.io/v2"); // Configure API key authorization: api_key ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key"); @@ -165,7 +165,7 @@ import org.openapitools.client.api.StoreApi; public class Example { public static void main(String[] args) { ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://petstore.swagger.io:80/v2"); + defaultClient.setBasePath("https://petstore.swagger.io/v2"); StoreApi apiInstance = new StoreApi(defaultClient); Long orderId = 56L; // Long | ID of pet that needs to be fetched @@ -230,7 +230,7 @@ import org.openapitools.client.api.StoreApi; public class Example { public static void main(String[] args) { ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://petstore.swagger.io:80/v2"); + defaultClient.setBasePath("https://petstore.swagger.io/v2"); StoreApi apiInstance = new StoreApi(defaultClient); Order body = new Order(); // Order | order placed for purchasing the pet diff --git a/samples/client/petstore/java/jersey2-java8/docs/UserApi.md b/samples/client/petstore/java/jersey2-java8/docs/UserApi.md index 57be237f5f9a2..8f53f122c12ea 100644 --- a/samples/client/petstore/java/jersey2-java8/docs/UserApi.md +++ b/samples/client/petstore/java/jersey2-java8/docs/UserApi.md @@ -1,6 +1,6 @@ # UserApi -All URIs are relative to *http://petstore.swagger.io:80/v2* +All URIs are relative to *https://petstore.swagger.io/v2* | Method | HTTP request | Description | |------------- | ------------- | -------------| @@ -36,7 +36,7 @@ import org.openapitools.client.api.UserApi; public class Example { public static void main(String[] args) { ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://petstore.swagger.io:80/v2"); + defaultClient.setBasePath("https://petstore.swagger.io/v2"); UserApi apiInstance = new UserApi(defaultClient); User body = new User(); // User | Created user object @@ -98,7 +98,7 @@ import org.openapitools.client.api.UserApi; public class Example { public static void main(String[] args) { ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://petstore.swagger.io:80/v2"); + defaultClient.setBasePath("https://petstore.swagger.io/v2"); UserApi apiInstance = new UserApi(defaultClient); List body = Arrays.asList(); // List | List of user object @@ -160,7 +160,7 @@ import org.openapitools.client.api.UserApi; public class Example { public static void main(String[] args) { ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://petstore.swagger.io:80/v2"); + defaultClient.setBasePath("https://petstore.swagger.io/v2"); UserApi apiInstance = new UserApi(defaultClient); List body = Arrays.asList(); // List | List of user object @@ -224,7 +224,7 @@ import org.openapitools.client.api.UserApi; public class Example { public static void main(String[] args) { ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://petstore.swagger.io:80/v2"); + defaultClient.setBasePath("https://petstore.swagger.io/v2"); UserApi apiInstance = new UserApi(defaultClient); String username = "username_example"; // String | The name that needs to be deleted @@ -287,7 +287,7 @@ import org.openapitools.client.api.UserApi; public class Example { public static void main(String[] args) { ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://petstore.swagger.io:80/v2"); + defaultClient.setBasePath("https://petstore.swagger.io/v2"); UserApi apiInstance = new UserApi(defaultClient); String username = "username_example"; // String | The name that needs to be fetched. Use user1 for testing. @@ -352,7 +352,7 @@ import org.openapitools.client.api.UserApi; public class Example { public static void main(String[] args) { ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://petstore.swagger.io:80/v2"); + defaultClient.setBasePath("https://petstore.swagger.io/v2"); UserApi apiInstance = new UserApi(defaultClient); String username = "username_example"; // String | The user name for login @@ -418,7 +418,7 @@ import org.openapitools.client.api.UserApi; public class Example { public static void main(String[] args) { ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://petstore.swagger.io:80/v2"); + defaultClient.setBasePath("https://petstore.swagger.io/v2"); UserApi apiInstance = new UserApi(defaultClient); try { @@ -478,7 +478,7 @@ import org.openapitools.client.api.UserApi; public class Example { public static void main(String[] args) { ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://petstore.swagger.io:80/v2"); + defaultClient.setBasePath("https://petstore.swagger.io/v2"); UserApi apiInstance = new UserApi(defaultClient); String username = "username_example"; // String | name that need to be deleted diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/ApiClient.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/ApiClient.java index 194509dfe0a17..8f1dbfb0e2bdd 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/ApiClient.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/ApiClient.java @@ -78,13 +78,13 @@ public class ApiClient extends JavaTimeFormatter { protected Map defaultHeaderMap = new HashMap<>(); protected Map defaultCookieMap = new HashMap<>(); - protected String basePath = "http://petstore.swagger.io:80/v2"; + protected String basePath = "https://petstore.swagger.io/v2"; protected String userAgent; private static final Logger log = Logger.getLogger(ApiClient.class.getName()); protected List servers = new ArrayList<>(Arrays.asList( new ServerConfiguration( - "http://petstore.swagger.io:80/v2", + "https://petstore.swagger.io/v2", "No description provided", new LinkedHashMap<>() ) diff --git a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/ConfigurationTest.java b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/ConfigurationTest.java index 55b8aff3587f0..c5a2cec925597 100644 --- a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/ConfigurationTest.java +++ b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/ConfigurationTest.java @@ -10,7 +10,7 @@ public class ConfigurationTest { public void testDefaultApiClient() { ApiClient apiClient = Configuration.getDefaultApiClient(); assertNotNull(apiClient); - assertEquals("http://petstore.swagger.io:80/v2", apiClient.getBasePath()); + assertEquals("https://petstore.swagger.io/v2", apiClient.getBasePath()); assertFalse(apiClient.isDebugging()); } } diff --git a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/StringUtilTest.java b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/StringUtilTest.java index 80657f1b48a11..fb999c8d04481 100644 --- a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/StringUtilTest.java +++ b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/StringUtilTest.java @@ -2,7 +2,7 @@ import org.junit.jupiter.api.*; -import static org.junit.jupiter.api.Assert.*; +import static org.junit.jupiter.api.Assertions.*; public class StringUtilTest { diff --git a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/api/PetApiTest.java b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/api/PetApiTest.java index 7a253d8d5a6c6..e953c048d30a5 100644 --- a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/api/PetApiTest.java +++ b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/api/PetApiTest.java @@ -154,7 +154,7 @@ public void findPetsByTagsTest() throws ApiException { @Test public void getPetByIdTest() throws ApiException { ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://petstore.swagger.io:80/v2"); + defaultClient.setBasePath("https://petstore.swagger.io/v2"); // Configure API key authorization: api_key ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");