2020
2121import com .fasterxml .jackson .databind .ObjectMapper ;
2222import com .google .gson .Gson ;
23- import jdk .internal .joptsimple .internal .Strings ;
2423import org .apache .commons .io .IOUtils ;
2524import org .apache .http .HttpHeaders ;
2625import 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 ();
0 commit comments