diff --git a/omod-1.9/src/test/java/org/openmrs/module/webservices/rest/web/v1_0/controller/openmrs1_9/ObsController1_9Test.java b/omod-1.9/src/test/java/org/openmrs/module/webservices/rest/web/v1_0/controller/openmrs1_9/ObsController1_9Test.java index 3bace77146..a89d1f9f09 100644 --- a/omod-1.9/src/test/java/org/openmrs/module/webservices/rest/web/v1_0/controller/openmrs1_9/ObsController1_9Test.java +++ b/omod-1.9/src/test/java/org/openmrs/module/webservices/rest/web/v1_0/controller/openmrs1_9/ObsController1_9Test.java @@ -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 allNonVoidedObsList = deserialize(allNonVoidedObsResponse).get("results"); @@ -105,7 +105,7 @@ 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 allObsIncludingVoidedList = deserialize(allObsIncludingVoidedResponse).get("results"); @@ -113,7 +113,7 @@ public void searchByEncounter_shouldGetVoidedObsIfIncludeAllIsTrue() throws Exce assertEquals(allObsIncludingVoidedList.size(), 6); MockHttpServletRequest allNonVoidedObsAfterDeleteRequest = newGetRequest(getURI()); - allNonVoidedObsAfterDeleteRequest.addParameter("encounter", encounterUuid); + allNonVoidedObsAfterDeleteRequest.addParameter("encounter", ENCOUNTER_UUID); MockHttpServletResponse allNonVoidedObsAfterDeleteResponse = handle(allNonVoidedObsAfterDeleteRequest); List allNonVoidedObsAfterDeleteList = deserialize(allNonVoidedObsAfterDeleteResponse).get("results");