@Test public void testGetCookies() throws Exception { Result result = Results.ok(); assertThat(result.getCookies()).isEmpty(); result.with(cookie("hello", "value").build()); assertThat(result.getCookies()).hasSize(1); assertThat(result.getCookie("hello").value()).isEqualTo("value"); assertThat(result.getCookie("missing")).isNull(); }
public List<Cookie> getCookies() { return cookies; }
Result implements Status { public List<Cookie> getCookies() { return cookies; } }
Result implements Status { public List<Cookie> getCookies() { return cookies; } Result(int statusCode);  Result(); }
Result implements Status { public List<Cookie> getCookies() { return cookies; } Result(int statusCode);  Result(); Renderable<?> getRenderable(); Result render(Renderable<?> renderable); Result render(Object object); Result render(JsonNode node); Result render(String padding, JsonNode node); Result render(Document document); Result render(String content); Result render(CharSequence content); Result render(StringBuilder content); Result render(StringBuffer content); String getContentType(); Charset getCharset(); Result with(Charset charset); String getFullContentType(); Result as(String contentType); Map<String, String> getHeaders(); Result with(String headerName, String headerContent); Cookie getCookie(String cookieName); List<Cookie> getCookies(); Result with(Cookie cookie); Result without(String name); Result withoutCompression(); Result discard(String name); Result discard(String... names); int getStatusCode(); Result status(int statusCode); Result redirect(String url); Result redirectTemporary(String url); Result html(); Result json(); Result xml(); Result noCache(); Result noContentIfNone(); Result addToSession(String key, String value); Result addToFlash(String key, String value); }
Result implements Status { public List<Cookie> getCookies() { return cookies; } Result(int statusCode);  Result(); Renderable<?> getRenderable(); Result render(Renderable<?> renderable); Result render(Object object); Result render(JsonNode node); Result render(String padding, JsonNode node); Result render(Document document); Result render(String content); Result render(CharSequence content); Result render(StringBuilder content); Result render(StringBuffer content); String getContentType(); Charset getCharset(); Result with(Charset charset); String getFullContentType(); Result as(String contentType); Map<String, String> getHeaders(); Result with(String headerName, String headerContent); Cookie getCookie(String cookieName); List<Cookie> getCookies(); Result with(Cookie cookie); Result without(String name); Result withoutCompression(); Result discard(String name); Result discard(String... names); int getStatusCode(); Result status(int statusCode); Result redirect(String url); Result redirectTemporary(String url); Result html(); Result json(); Result xml(); Result noCache(); Result noContentIfNone(); Result addToSession(String key, String value); Result addToFlash(String key, String value);  }