From 65a54bfe292aff30343318dcf08ff2a0522ff796 Mon Sep 17 00:00:00 2001 From: Corina Dalaban Date: Tue, 7 Aug 2018 16:43:41 +0300 Subject: [PATCH] the test for head operation is not needed anymore in the unsupportedhttpmethods --- ...anUnsupprtedHttpMethodsInterceptorDstu3Test.java | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/hapi-fhir-structures-dstu3/src/test/java/ca/uhn/fhir/rest/server/interceptor/BanUnsupprtedHttpMethodsInterceptorDstu3Test.java b/hapi-fhir-structures-dstu3/src/test/java/ca/uhn/fhir/rest/server/interceptor/BanUnsupprtedHttpMethodsInterceptorDstu3Test.java index b6edd6971c5..89e2e5acfc3 100644 --- a/hapi-fhir-structures-dstu3/src/test/java/ca/uhn/fhir/rest/server/interceptor/BanUnsupprtedHttpMethodsInterceptorDstu3Test.java +++ b/hapi-fhir-structures-dstu3/src/test/java/ca/uhn/fhir/rest/server/interceptor/BanUnsupprtedHttpMethodsInterceptorDstu3Test.java @@ -54,19 +54,6 @@ public class BanUnsupprtedHttpMethodsInterceptorDstu3Test { IOUtils.closeQuietly(status.getEntity().getContent()); } } - - @Test - public void testHeadJson() throws Exception { - HttpHead httpGet = new HttpHead("http://localhost:" + ourPort + "/Patient/123"); - HttpResponse status = ourClient.execute(httpGet); - assertEquals(null, status.getEntity()); - - ourLog.info(status.toString()); - - assertEquals(400, status.getStatusLine().getStatusCode()); - assertThat(status.getFirstHeader("x-powered-by").getValue(), containsString("HAPI")); - } - @Test public void testHttpTrackNotEnabled() throws Exception {