@Test public void readsHeaderFromResponse() throws Exception { when(response.getHeader("test_header")).thenReturn("test_value"); String value = HttpHeaderUtilities.getHeaderValue(response, header); assertThat(value, is("test_value")); }
public static String getHeaderValue(HttpServletRequest httpRequest, HttpHeader header) { return getHeaderValue(httpRequest, header, null); }
HttpHeaderUtilities { public static String getHeaderValue(HttpServletRequest httpRequest, HttpHeader header) { return getHeaderValue(httpRequest, header, null); } }
HttpHeaderUtilities { public static String getHeaderValue(HttpServletRequest httpRequest, HttpHeader header) { return getHeaderValue(httpRequest, header, null); } private  HttpHeaderUtilities(); }
HttpHeaderUtilities { public static String getHeaderValue(HttpServletRequest httpRequest, HttpHeader header) { return getHeaderValue(httpRequest, header, null); } private  HttpHeaderUtilities(); static String getHeaderValue(HttpServletRequest httpRequest, HttpHeader header); static String getHeaderValue(HttpServletRequest httpRequest, HttpHeader header, String defaultValue); static String getHeaderValue(HttpServletResponse httpResponse, HttpHeader header); static String getHeaderValue(HttpServletResponse httpResponse, HttpHeader header, String defaultValue); }
HttpHeaderUtilities { public static String getHeaderValue(HttpServletRequest httpRequest, HttpHeader header) { return getHeaderValue(httpRequest, header, null); } private  HttpHeaderUtilities(); static String getHeaderValue(HttpServletRequest httpRequest, HttpHeader header); static String getHeaderValue(HttpServletRequest httpRequest, HttpHeader header, String defaultValue); static String getHeaderValue(HttpServletResponse httpResponse, HttpHeader header); static String getHeaderValue(HttpServletResponse httpResponse, HttpHeader header, String defaultValue);  }