Skip to content

Commit b62dc24

Browse files
committed
Fix minor typos
1 parent 13c4417 commit b62dc24

2 files changed

Lines changed: 9 additions & 10 deletions

File tree

all-in-one-apim/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/am/integration/tests/admin/ChangeApiProviderSecondaryUserStoreTestCase.java

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020

2121
import com.fasterxml.jackson.databind.ObjectMapper;
2222
import com.google.gson.Gson;
23-
import jdk.internal.joptsimple.internal.Strings;
2423
import org.apache.commons.io.IOUtils;
2524
import org.apache.http.HttpHeaders;
2625
import org.apache.http.HttpStatus;
@@ -213,7 +212,7 @@ public void ChangeApiProvider() throws Exception {
213212
//publish the api
214213
restAPIPublisher.changeAPILifeCycleStatus(apiID, APILifeCycleAction.PUBLISH.getAction(), null);
215214

216-
HttpResponse applicationResponse = restAPIStore.createApplication(APPLICATION_NAME, Strings.EMPTY,
215+
HttpResponse applicationResponse = restAPIStore.createApplication(APPLICATION_NAME, "",
217216
APIMIntegrationConstants.APPLICATION_TIER.UNLIMITED,
218217
ApplicationDTO.TokenTypeEnum.JWT);
219218

@@ -234,7 +233,7 @@ public void ChangeApiProvider() throws Exception {
234233
requestHeaders.put(HttpHeaders.ACCEPT, MediaType.APPLICATION_JSON);
235234
requestHeaders.put(HttpHeaders.AUTHORIZATION, BEARER + accessToken);
236235
HttpResponse apiInvokeResponse = HttpRequestUtil.doGet(
237-
getAPIInvocationURLHttps(APIContext.replace(File.separator, Strings.EMPTY), APIVersion)
236+
getAPIInvocationURLHttps(APIContext.replace(File.separator, ""), APIVersion)
238237
+ File.separator + API_ENDPOINT_METHOD, requestHeaders);
239238
Assert.assertEquals(apiInvokeResponse.getResponseCode(), HTTP_RESPONSE_CODE_OK,
240239
RESPONSE_CODE_MISMATCH_ERROR_MESSAGE);
@@ -331,7 +330,7 @@ public void ChangeApiProvider() throws Exception {
331330
APIMIntegrationConstants.IS_API_EXISTS);
332331

333332
apiInvokeResponse = HttpRequestUtil.doGet(
334-
getAPIInvocationURLHttps(APIContext.replace(File.separator, Strings.EMPTY), APIVersion)
333+
getAPIInvocationURLHttps(APIContext.replace(File.separator, ""), APIVersion)
335334
+ File.separator + API_ENDPOINT_METHOD, requestHeaders);
336335
Assert.assertEquals(apiInvokeResponse.getResponseCode(), HTTP_RESPONSE_CODE_OK,
337336
RESPONSE_CODE_MISMATCH_ERROR_MESSAGE);
@@ -625,7 +624,7 @@ public void ChangeSoapApiProvider() throws Exception {
625624
restAPIPublisher.changeAPILifeCycleStatus(soapApiId, APILifeCycleAction.PUBLISH.getAction(), null);
626625

627626
// Create application and subscribe
628-
HttpResponse applicationResponse = restAPIStore.createApplication(SOAP_APPLICATION_NAME, Strings.EMPTY,
627+
HttpResponse applicationResponse = restAPIStore.createApplication(SOAP_APPLICATION_NAME, "",
629628
APIMIntegrationConstants.APPLICATION_TIER.UNLIMITED,
630629
ApplicationDTO.TokenTypeEnum.JWT);
631630
soapApplicationId = applicationResponse.getData();
@@ -767,7 +766,7 @@ public void ChangeSoapToRestApiProvider() throws Exception {
767766
restAPIPublisher.changeAPILifeCycleStatus(soapToRestApiId, APILifeCycleAction.PUBLISH.getAction(), null);
768767

769768
// Create application and subscribe
770-
HttpResponse applicationResponse = restAPIStore.createApplication(SAPTOREST_APPLICATION_NAME, Strings.EMPTY,
769+
HttpResponse applicationResponse = restAPIStore.createApplication(SAPTOREST_APPLICATION_NAME, "",
771770
APIMIntegrationConstants.APPLICATION_TIER.UNLIMITED,
772771
ApplicationDTO.TokenTypeEnum.JWT);
773772
soapToRestApplicationId = applicationResponse.getData();
@@ -1017,7 +1016,7 @@ public void ChangeGraphQLApiProvider() throws Exception {
10171016
restAPIPublisher.changeAPILifeCycleStatus(graphqlApiId, APILifeCycleAction.PUBLISH.getAction(), null);
10181017

10191018
// 4. Create application and subscribe
1020-
HttpResponse applicationResponse = restAPIStore.createApplication(GRAPHQL_APPLICATION_NAME, Strings.EMPTY,
1019+
HttpResponse applicationResponse = restAPIStore.createApplication(GRAPHQL_APPLICATION_NAME, "",
10211020
APIMIntegrationConstants.APPLICATION_TIER.UNLIMITED,
10221021
ApplicationDTO.TokenTypeEnum.JWT);
10231022
graphqlApplicationId = applicationResponse.getData();

all-in-one-apim/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/am/integration/tests/admin/ChangeApiProviderTestCase.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ public void ChangeApiProvider() throws Exception {
283283
APIDTO apiByRevision = restAPIPublisher.getAPIByID(revisionUUID);
284284
Assert.assertNotNull(apiByRevision, "API retrieved by revision should not be null");
285285
Assert.assertEquals(apiByRevision.getProvider(), originalProvider,
286-
"API provider from revision should match new provider");
286+
"API provider from revision should match original provider");
287287

288288
// Get swagger using revision ID after provider change
289289
String swaggerByRevision = restAPIPublisher.getSwaggerByID(revisionUUID);
@@ -695,7 +695,7 @@ public void ChangeSoapApiProvider() throws Exception {
695695
APIDTO apiByRevisionSoap = restAPIPublisher.getAPIByID(soapApiRevisionUUID);
696696
Assert.assertNotNull(apiByRevisionSoap, "SOAP API retrieved by revision should not be null");
697697
Assert.assertEquals(apiByRevisionSoap.getProvider(), originalProvider,
698-
"SOAP API provider from revision should match new provider");
698+
"SOAP API provider from revision should match original provider");
699699

700700
// Get WSDL using revision UUID after provider change
701701
org.wso2.am.integration.clients.publisher.api.ApiResponse<Void> wsdlByRevision =
@@ -932,7 +932,7 @@ public void ChangeSoapToRestApiProvider() throws Exception {
932932
APIDTO apiByRevisionSoapToRest = restAPIPublisher.getAPIByID(soapToRestRevisionUUID);
933933
Assert.assertNotNull(apiByRevisionSoapToRest, "SOAPTOREST API retrieved by revision should not be null");
934934
Assert.assertEquals(apiByRevisionSoapToRest.getProvider(), originalProvider,
935-
"SOAPTOREST API provider from revision should match new provider");
935+
"SOAPTOREST API provider from revision should match original provider");
936936

937937
// Get Swagger using revision UUID after provider change
938938
String swaggerByRevisionSoapToRest = restAPIPublisher.getSwaggerByID(soapToRestRevisionUUID);

0 commit comments

Comments
 (0)