[(servermethodbinding)] Extend tests.

This commit is contained in:
Petro Mykhaylyshyn 2019-07-10 11:41:38 +03:00 committed by James Agnew
parent 8e9b7b590c
commit 04e280214f
1 changed files with 13 additions and 0 deletions

View File

@ -456,6 +456,19 @@ public class SearchDstu2Test {
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");