Skip to content

Commit

Permalink
RESTWS-716: Orders resource returns no results when only status is sp…
Browse files Browse the repository at this point in the history
…ecified
  • Loading branch information
IamMujuziMoses committed Sep 24, 2023
1 parent 576916a commit 8cf5655
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ protected PageableResult doSearch(RequestContext context) throws ResponseExcepti
return new NeedsPaging<Order>(orders, context);
}
} else {
throw new InvalidSearchException("Please specify patient parameter with valid patientUuid");
throw new InvalidSearchException("Please provide patientUuid in the patient parameter");
}

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,7 @@ public void invalidCareCenterShouldThrowException() throws Exception {
}

@Test(expected = InvalidSearchException.class)
public void doSearch_shouldThrowExceptionIfNoPatientUuidIsSpecified() throws Exception {
public void doSearch_shouldReturnExceptionIfNoPatientUuidIsSpecified() throws Exception {
MockHttpServletRequest req = newGetRequest(getURI(),
new Parameter("status", "active")
);
Expand Down

0 comments on commit 8cf5655

Please sign in to comment.