@Test public void testPing() { HTTP.Response response = HTTP.getResponse(buildURL("ping")); assertEquals(200, response.status()); final List<String> controls = response.headers().get(HttpHeaders.CACHE_CONTROL); Assert.assertEquals("no-cache, no-store", controls.get(0)); Assert.assertEquals("max-age=0", controls.get(1)); assertEquals("\"love rocket\"", response.body()); }
@Test public void testPing3() { HTTP.Response response = HTTP.jsonRestCallViaPUT(buildURL("ping3"), "\"foo\""); assertEquals(777, response.status()); assertEquals("hello mom foo", response.body()); }
@Test public void testPing2() { HTTP.Response response = HTTP.getResponse(buildURL("ping2")); assertEquals(777, response.status()); assertEquals("hello mom", response.body()); }