Skip to content

Commit

Permalink
Remove empty lines
Browse files Browse the repository at this point in the history
  • Loading branch information
dulithsenanayake committed Jan 30, 2024
1 parent 57522af commit e84927a
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,6 @@ public HttpResponse addAPIWithMalformedContext(APIRequest apiRequest) {
return response;
}
return null;

}

/**
Expand Down Expand Up @@ -1263,7 +1262,6 @@ public HttpResponse importGraphqlSchemaDefinitionWithInvalidContext(File file, S
return response;
}


public WSDLValidationResponseDTO validateWsdlDefinition(String url, File wsdlDefinition) throws ApiException {
ApiResponse<WSDLValidationResponseDTO> response = validationApi
.validateWSDLDefinitionWithHttpInfo(url, wsdlDefinition);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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));

}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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");


}

/**
Expand Down

0 comments on commit e84927a

Please sign in to comment.