@Test public void extractBooleanHeader_whenValueIsOne_shouldReturnTrue() throws Exception { response.addHeader(SCROLLABLE.getKey(), "1"); assertThat(HeaderUtils.extractBooleanHeader(response, SCROLLABLE, false)).isTrue(); response.addHeader(SCROLLABLE.getKey(), "1"); assertThat(HeaderUtils.extractBooleanHeader(response, SCROLLABLE, true)).isTrue(); }
public static boolean extractBooleanHeader(Map<String, String> headers, ResponseHeader responseHeader, boolean defaultValue) { return formatBooleanHeader(extractHeader(headers, responseHeader), defaultValue); }
HeaderUtils { public static boolean extractBooleanHeader(Map<String, String> headers, ResponseHeader responseHeader, boolean defaultValue) { return formatBooleanHeader(extractHeader(headers, responseHeader), defaultValue); } }
HeaderUtils { public static boolean extractBooleanHeader(Map<String, String> headers, ResponseHeader responseHeader, boolean defaultValue) { return formatBooleanHeader(extractHeader(headers, responseHeader), defaultValue); }  }
HeaderUtils { public static boolean extractBooleanHeader(Map<String, String> headers, ResponseHeader responseHeader, boolean defaultValue) { return formatBooleanHeader(extractHeader(headers, responseHeader), defaultValue); }  @Nullable static String extractHeader(Map<String, String> headers, ResponseHeader responseHeader); static Integer extractIntegerHeader(Map<String, String> headers, ResponseHeader responseHeader); static boolean extractBooleanHeader(Map<String, String> headers, ResponseHeader responseHeader, boolean defaultValue); static String extractHeader(HttpResponse response, ResponseHeader responseHeader); static boolean extractBooleanHeader(HttpResponse response, ResponseHeader responseHeader, boolean defaultValue); static Integer extractIntegerHeader(HttpResponse response, ResponseHeader responseHeader); static int extractIntHeader(HttpResponse response, ResponseHeader responseHeader, int defaultValue); }
HeaderUtils { public static boolean extractBooleanHeader(Map<String, String> headers, ResponseHeader responseHeader, boolean defaultValue) { return formatBooleanHeader(extractHeader(headers, responseHeader), defaultValue); }  @Nullable static String extractHeader(Map<String, String> headers, ResponseHeader responseHeader); static Integer extractIntegerHeader(Map<String, String> headers, ResponseHeader responseHeader); static boolean extractBooleanHeader(Map<String, String> headers, ResponseHeader responseHeader, boolean defaultValue); static String extractHeader(HttpResponse response, ResponseHeader responseHeader); static boolean extractBooleanHeader(HttpResponse response, ResponseHeader responseHeader, boolean defaultValue); static Integer extractIntegerHeader(HttpResponse response, ResponseHeader responseHeader); static int extractIntHeader(HttpResponse response, ResponseHeader responseHeader, int defaultValue);  }