Source:
<code>public void searchByEncounter_shouldGetVoidedObsIfIncludeAllIsTrue() throws Exception { executeDataSet("encounterWithObsGroup1_9.xml"); <START> String encounterUuid = "62967e68-96bb-11e0-8d6b-9b9415a91465"; <END> MockHttpServletRequest allNonVoidedObsRequest = newGetRequest(getURI()); allNonVoidedObsRequest.addParameter("encounter", encounterUuid); MockHttpServletResponse allNonVoidedObsResponse = handle(allNonVoidedObsRequest); List<Object> allNonVoidedObsList = deserialize(allNonVoidedObsResponse).get("results"); assertEquals(allNonVoidedObsList.size(), 6); MockHttpServletRequest deleteRequest = newDeleteRequest(getURI() + "/" + "11de743c-96cd-11e0-8d6b-9b9415a91465"); deleteRequest.addParameter("reason", "test voided obs"); handle(deleteRequest); MockHttpServletRequest allObsIncludingVoidedRequest = newGetRequest(getURI()); allObsIncludingVoidedRequest.addParameter("encounter", encounterUuid); 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); MockHttpServletResponse allNonVoidedObsAfterDeleteResponse = handle(allNonVoidedObsAfterDeleteRequest); List<Object> allNonVoidedObsAfterDeleteList = deserialize(allNonVoidedObsAfterDeleteResponse).get("results"); assertEquals(allNonVoidedObsAfterDeleteList.size(), 5); }</code><technical_language>looked naming conventions in line? <LINK_0></technical_language>

Target:
public void searchByEncounter_shouldGetVoidedObsIfIncludeAllIsTrue() throws Exception { executeDataSet("encounterWithObsGroup1_9.xml"); final String ENCOUNTER_UUID = "62967e68-96bb-11e0-8d6b-9b9415a91465"; MockHttpServletRequest allNonVoidedObsRequest = newGetRequest(getURI()); allNonVoidedObsRequest.addParameter("encounter", ENCOUNTER_UUID); MockHttpServletResponse allNonVoidedObsResponse = handle(allNonVoidedObsRequest); List<Object> allNonVoidedObsList = deserialize(allNonVoidedObsResponse).get("results"); assertEquals(allNonVoidedObsList.size(), 6); MockHttpServletRequest deleteRequest = newDeleteRequest(getURI() + "/" + "11de743c-96cd-11e0-8d6b-9b9415a91465"); deleteRequest.addParameter("reason", "test voided obs"); handle(deleteRequest); MockHttpServletRequest allObsIncludingVoidedRequest = newGetRequest(getURI()); 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", ENCOUNTER_UUID); MockHttpServletResponse allNonVoidedObsAfterDeleteResponse = handle(allNonVoidedObsAfterDeleteRequest); List<Object> allNonVoidedObsAfterDeleteList = deserialize(allNonVoidedObsAfterDeleteResponse).get("results"); assertEquals(allNonVoidedObsAfterDeleteList.size(), 5); }