Skip to content

Commit

Permalink
[(servermethodbinding)] Extend tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
Petro Mykhaylyshyn authored and jamesagnew committed Oct 2, 2019
1 parent 8e9b7b5 commit 04e2802
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,19 @@ public void testSearchByQualifiedIdString() throws Exception {
assertEquals("stringParam:true:false", ourLastMethod);
}

@Test
public void testSearchByIdString() throws Exception {
HttpGet httpGet = new HttpGet("http://localhost:" + ourPort + "/Patient?_id=aaa&stringParam=value");
HttpResponse status = ourClient.execute(httpGet);
String responseContent = IOUtils.toString(status.getEntity().getContent(), Charset.defaultCharset());
IOUtils.closeQuietly(status.getEntity().getContent());
ourLog.info(responseContent);
assertEquals(200, status.getStatusLine().getStatusCode());

assertEquals("stringParam:false:false", ourLastMethod);
}


@Test
public void testSearchWhitelist01Failing() throws Exception {
HttpGet httpGet = new HttpGet("http://localhost:" + ourPort + "/Patient?_query=searchWhitelist01&ref=value");
Expand Down

0 comments on commit 04e2802

Please sign in to comment.