@Test(expected = IllegalArgumentException.class) public void throwsExceptionWhenCookieHeaderIsNull() throws Exception { cookieHeaderDelegate.fromString(null); }
@Override public Cookie fromString(String header) { if (header == null) { throw new IllegalArgumentException(); } List<Cookie> cookies = HeaderHelper.parseCookies(header); return Iterables.getFirst(cookies, null); }
CookieHeaderDelegate implements RuntimeDelegate.HeaderDelegate<Cookie> { @Override public Cookie fromString(String header) { if (header == null) { throw new IllegalArgumentException(); } List<Cookie> cookies = HeaderHelper.parseCookies(header); return Iterables.getFirst(cookies, null); } }
CookieHeaderDelegate implements RuntimeDelegate.HeaderDelegate<Cookie> { @Override public Cookie fromString(String header) { if (header == null) { throw new IllegalArgumentException(); } List<Cookie> cookies = HeaderHelper.parseCookies(header); return Iterables.getFirst(cookies, null); }  }
CookieHeaderDelegate implements RuntimeDelegate.HeaderDelegate<Cookie> { @Override public Cookie fromString(String header) { if (header == null) { throw new IllegalArgumentException(); } List<Cookie> cookies = HeaderHelper.parseCookies(header); return Iterables.getFirst(cookies, null); }  @Override Cookie fromString(String header); @Override String toString(Cookie cookie); }
CookieHeaderDelegate implements RuntimeDelegate.HeaderDelegate<Cookie> { @Override public Cookie fromString(String header) { if (header == null) { throw new IllegalArgumentException(); } List<Cookie> cookies = HeaderHelper.parseCookies(header); return Iterables.getFirst(cookies, null); }  @Override Cookie fromString(String header); @Override String toString(Cookie cookie);  }