Skip to content

Commit

Permalink
correct pull request review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
Ewanjiru committed Oct 24, 2017
1 parent c978e25 commit c0bb083
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,10 @@ public void searchByEncounter_shouldGetVoidedObsIfIncludeAllIsTrue() throws Exce

executeDataSet("encounterWithObsGroup1_9.xml");

String encounterUuid = "62967e68-96bb-11e0-8d6b-9b9415a91465";
final String ENCOUNTER_UUID = "62967e68-96bb-11e0-8d6b-9b9415a91465";

MockHttpServletRequest allNonVoidedObsRequest = newGetRequest(getURI());
allNonVoidedObsRequest.addParameter("encounter", encounterUuid);
allNonVoidedObsRequest.addParameter("encounter", ENCOUNTER_UUID);
MockHttpServletResponse allNonVoidedObsResponse = handle(allNonVoidedObsRequest);
List<Object> allNonVoidedObsList = deserialize(allNonVoidedObsResponse).get("results");

Expand All @@ -105,15 +105,15 @@ public void searchByEncounter_shouldGetVoidedObsIfIncludeAllIsTrue() throws Exce
handle(deleteRequest);

MockHttpServletRequest allObsIncludingVoidedRequest = newGetRequest(getURI());
allObsIncludingVoidedRequest.addParameter("encounter", encounterUuid);
allObsIncludingVoidedRequest.addParameter("encounter", ENCOUNTER_UUID);
allObsIncludingVoidedRequest.addParameter("includeAll", "true");
MockHttpServletResponse allObsIncludingVoidedResponse = handle(allObsIncludingVoidedRequest);
List<Object> allObsIncludingVoidedList = deserialize(allObsIncludingVoidedResponse).get("results");

assertEquals(allObsIncludingVoidedList.size(), 6);

MockHttpServletRequest allNonVoidedObsAfterDeleteRequest = newGetRequest(getURI());
allNonVoidedObsAfterDeleteRequest.addParameter("encounter", encounterUuid);
allNonVoidedObsAfterDeleteRequest.addParameter("encounter", ENCOUNTER_UUID);
MockHttpServletResponse allNonVoidedObsAfterDeleteResponse = handle(allNonVoidedObsAfterDeleteRequest);
List<Object> allNonVoidedObsAfterDeleteList = deserialize(allNonVoidedObsAfterDeleteResponse).get("results");

Expand Down

0 comments on commit c0bb083

Please sign in to comment.