示例#1
0
  @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());
  }