Example #1
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void testOptionsRequest()
        public virtual void testOptionsRequest()
        {
            //since WAS 9 contains patched cxf, which does not support OPTIONS request, we have to test this
            string resourcePath = APP_BASE_PATH + FILTER_PATH;

            log.info("Send OPTIONS request to " + resourcePath);

            // given
            WebResource resource = client.resource(resourcePath);

            // when
            ClientResponse response = resource.options(typeof(ClientResponse));

            // then
            assertNotNull(response);
            assertEquals(200, response.Status);
            JSONObject entity = response.getEntity(typeof(JSONObject));

            assertNotNull(entity.has("links"));
        }