Skip to content

Commit

Permalink
rename variables
Browse files Browse the repository at this point in the history
  • Loading branch information
ruks committed Aug 17, 2015
1 parent 1ca3f32 commit 687a943
Showing 1 changed file with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,8 @@ public void init() throws APIManagerIntegrationTestException {

@AfterClass(alwaysRun = true)
public void destroy() throws Exception {
super.cleanup();
deleteApplication();
super.cleanup();
}

@Test(description = "Login to publisher using username and password", groups = "wso2.apim.is")
Expand Down Expand Up @@ -614,14 +614,14 @@ public void createApplicationTest() throws Exception {
"application-add/ajax/application-add.jag", urlParameters, csrf);
assertEquals(Response.Status.OK.getStatusCode(), response.getStatusLine().getStatusCode(),
"Response mismatch not 200");
boolean errorOccur = getResponseBody(response).contains("\"error\" : true");
assertFalse(errorOccur, "Error when Application Creation");
boolean isError = getResponseBody(response).contains("\"error\" : true");
assertFalse(isError, "Error when Application Creation");
EntityUtils.consume(response.getEntity());

response = sendGetRequest(httpsStoreUrl + "/site/blocks/application/"
+ "application-list/ajax/application-list.jag?action=getApplications");
boolean appExist = getResponseBody(response).contains("\"name\" : \"" + testApplicationName + "\"");
assertTrue(appExist, "Application Creattion not succesful");
boolean isAppExist = getResponseBody(response).contains("\"name\" : \"" + testApplicationName + "\"");
assertTrue(isAppExist, "Application Creattion not succesful");
EntityUtils.consume(response.getEntity());
}

Expand All @@ -640,8 +640,8 @@ private void deleteApplication() throws Exception {
"application-remove/ajax/application-remove.jag", urlParameters, csrf);
assertEquals(Response.Status.OK.getStatusCode(), response.getStatusLine().getStatusCode(),
"Response mismatch not 200");
boolean errorOccur = getResponseBody(response).contains("\"error\" : true");
assertTrue(!errorOccur, "Error on Application deletion");
boolean isError = getResponseBody(response).contains("\"error\" : true");
assertFalse(isError, "Error on Application deletion");
EntityUtils.consume(response.getEntity());

urlParameters.clear();
Expand All @@ -653,8 +653,8 @@ private void deleteApplication() throws Exception {

response = sendGetRequest(httpsStoreUrl + "/site/blocks/application/"
+ "application-list/ajax/application-list.jag?action=getApplications");
boolean appExist = getResponseBody(response).contains("\"name\" : \"" + testApplicationName + "\"");
assertFalse(appExist, "Application Deletion not successfull");
boolean isAppExist = getResponseBody(response).contains("\"name\" : \"" + testApplicationName + "\"");
assertFalse(isAppExist, "Application Deletion not successfull");
EntityUtils.consume(response.getEntity());

}
Expand Down

0 comments on commit 687a943

Please sign in to comment.