This commit is contained in:
James Agnew 2017-07-12 14:05:06 -04:00
parent 905d1239a0
commit 375fb897f9
1 changed files with 4 additions and 0 deletions

View File

@ -149,6 +149,9 @@ public class ResponseHighlightingInterceptorTest {
@Test @Test
public void testShowNeither() throws Exception { public void testShowNeither() throws Exception {
ourInterceptor.setShowRequestHeaders(false);
ourInterceptor.setShowResponseHeaders(false);
HttpGet httpGet = new HttpGet("http://localhost:" + ourPort + "/Patient/1?_format=html/json"); HttpGet httpGet = new HttpGet("http://localhost:" + ourPort + "/Patient/1?_format=html/json");
HttpResponse status = ourClient.execute(httpGet); HttpResponse status = ourClient.execute(httpGet);
@ -180,6 +183,7 @@ public class ResponseHighlightingInterceptorTest {
@Test @Test
public void testShowRequest() throws Exception { public void testShowRequest() throws Exception {
ourInterceptor.setShowRequestHeaders(true); ourInterceptor.setShowRequestHeaders(true);
ourInterceptor.setShowResponseHeaders(false);
HttpGet httpGet = new HttpGet("http://localhost:" + ourPort + "/Patient/1?_format=html/json"); HttpGet httpGet = new HttpGet("http://localhost:" + ourPort + "/Patient/1?_format=html/json");