From e84927a4de3e43f7eae2f261f9a91cff221af5f4 Mon Sep 17 00:00:00 2001 From: dulith Date: Tue, 30 Jan 2024 17:39:57 +0530 Subject: [PATCH] Remove empty lines --- .../wso2/am/integration/test/impl/RestAPIPublisherImpl.java | 2 -- .../tests/apiproduct/APIProductCreationTestCase.java | 3 --- .../org/wso2/am/integration/tests/graphql/GraphqlTestCase.java | 1 - .../wso2/am/integration/tests/other/WSDLImportTestCase.java | 1 - .../APIM18CreateAnAPIThroughThePublisherRestAPITestCase.java | 1 - .../am/integration/tests/websocket/WebSocketAPITestCase.java | 2 -- 6 files changed, 10 deletions(-) diff --git a/modules/integration/tests-common/integration-test-utils/src/main/java/org/wso2/am/integration/test/impl/RestAPIPublisherImpl.java b/modules/integration/tests-common/integration-test-utils/src/main/java/org/wso2/am/integration/test/impl/RestAPIPublisherImpl.java index a110a35461..13b1621d03 100644 --- a/modules/integration/tests-common/integration-test-utils/src/main/java/org/wso2/am/integration/test/impl/RestAPIPublisherImpl.java +++ b/modules/integration/tests-common/integration-test-utils/src/main/java/org/wso2/am/integration/test/impl/RestAPIPublisherImpl.java @@ -275,7 +275,6 @@ public HttpResponse addAPIWithMalformedContext(APIRequest apiRequest) { return response; } return null; - } /** @@ -1263,7 +1262,6 @@ public HttpResponse importGraphqlSchemaDefinitionWithInvalidContext(File file, S return response; } - public WSDLValidationResponseDTO validateWsdlDefinition(String url, File wsdlDefinition) throws ApiException { ApiResponse response = validationApi .validateWSDLDefinitionWithHttpInfo(url, wsdlDefinition); diff --git a/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/am/integration/tests/apiproduct/APIProductCreationTestCase.java b/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/am/integration/tests/apiproduct/APIProductCreationTestCase.java index 46373bddfc..09f520f769 100644 --- a/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/am/integration/tests/apiproduct/APIProductCreationTestCase.java +++ b/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/am/integration/tests/apiproduct/APIProductCreationTestCase.java @@ -327,11 +327,9 @@ public void testCreateApiProductWithMalformedContext() throws Exception { Assert.assertEquals(e.getCode(), Response.Status.BAD_REQUEST.getStatusCode()); Assert.assertTrue(e.getResponseBody().contains( APIMIntegrationConstants.API_PRODUCT_CONTEXT_MALFORMED_ERROR)); - } } - @Test(groups = {"wso2.am"}, description = "Test creation and invocation of API Product which depends " + "on a visibility restricted API") public void testCreateAndInvokeApiProductWithVisibilityRestrictedApi() throws Exception { @@ -817,7 +815,6 @@ public void cleanUpArtifacts() throws Exception { restAPIPublisher.deleteAPI(apiID1); restAPIPublisher.deleteAPI(apiID2); - super.cleanUp(); userManagementClient.deleteUser(RESTRICTED_SUBSCRIBER); userManagementClient.deleteUser(STANDARD_SUBSCRIBER); diff --git a/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/am/integration/tests/graphql/GraphqlTestCase.java b/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/am/integration/tests/graphql/GraphqlTestCase.java index f08d29d4e8..b928ca47d2 100644 --- a/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/am/integration/tests/graphql/GraphqlTestCase.java +++ b/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/am/integration/tests/graphql/GraphqlTestCase.java @@ -225,7 +225,6 @@ public void testCreateAndPublishGraphQLAPIUsingSchemaWithMalformedContext() thro response = restAPIPublisher.importGraphqlSchemaDefinitionWithInvalidContext(file, additionalPropertiesObj.toString()); Assert.assertNotNull(response, "Response cannot be null"); Assert.assertEquals(response.getResponseCode(), 400, "Response Code miss matched when creating the API"); - } @Test(groups = {"wso2.am"}, description = "test retrieve schemaDefinition at publisher") diff --git a/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/am/integration/tests/other/WSDLImportTestCase.java b/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/am/integration/tests/other/WSDLImportTestCase.java index 8097503f57..c6f24bc96d 100644 --- a/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/am/integration/tests/other/WSDLImportTestCase.java +++ b/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/am/integration/tests/other/WSDLImportTestCase.java @@ -289,7 +289,6 @@ public void testWsdlDefinitionImportWithMalformedContext() throws Exception { } catch (ApiException e) { Assert.assertEquals(e.getCode(), Response.Status.BAD_REQUEST.getStatusCode()); Assert.assertTrue(e.getResponseBody().contains(APIMIntegrationConstants.API_CONTEXT_MALFORMED_ERROR)); - } } diff --git a/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/am/integration/tests/publisher/APIM18CreateAnAPIThroughThePublisherRestAPITestCase.java b/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/am/integration/tests/publisher/APIM18CreateAnAPIThroughThePublisherRestAPITestCase.java index 300d905fb9..f30fbb8ef5 100644 --- a/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/am/integration/tests/publisher/APIM18CreateAnAPIThroughThePublisherRestAPITestCase.java +++ b/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/am/integration/tests/publisher/APIM18CreateAnAPIThroughThePublisherRestAPITestCase.java @@ -171,7 +171,6 @@ public void testCreateAnAPIWithMalformedContextThroughThePublisherRest() HttpResponse response = restAPIPublisher.addAPIWithMalformedContext(apiCreationRequestBean); Assert.assertNotNull(response, "Response cannot be null"); Assert.assertEquals(response.getResponseCode(), 400, "Response Code miss matched when creating the API"); - } @Test(groups = {"wso2.am"}, description = "Remove an API Through the Publisher Rest API", diff --git a/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/am/integration/tests/websocket/WebSocketAPITestCase.java b/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/am/integration/tests/websocket/WebSocketAPITestCase.java index 7f451c516a..efe8f8b52a 100644 --- a/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/am/integration/tests/websocket/WebSocketAPITestCase.java +++ b/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/am/integration/tests/websocket/WebSocketAPITestCase.java @@ -488,8 +488,6 @@ public void testCreateWebSocketAPIWithMalformedContext() throws Exception { HttpResponse response = restAPIPublisher.addAPIWithMalformedContext(apiRequest); Assert.assertEquals(response.getResponseCode(), 400, "Response Code miss matched when creating the API"); - - } /**