@Test public void shouldReturnEmpty() throws Exception { final String value = Defaults.emptyString().apply(buildRequest(), buildResponse()); assertEquals("", value); }
public static BiFunction<HttpRequestBase, HttpResponse, String> emptyString() { return (request, response) -> { request.releaseConnection(); EntityUtils.consumeQuietly(response.getEntity()); return StringUtils.EMPTY; }; }
Defaults { public static BiFunction<HttpRequestBase, HttpResponse, String> emptyString() { return (request, response) -> { request.releaseConnection(); EntityUtils.consumeQuietly(response.getEntity()); return StringUtils.EMPTY; }; } }
Defaults { public static BiFunction<HttpRequestBase, HttpResponse, String> emptyString() { return (request, response) -> { request.releaseConnection(); EntityUtils.consumeQuietly(response.getEntity()); return StringUtils.EMPTY; }; } private  Defaults(); }
Defaults { public static BiFunction<HttpRequestBase, HttpResponse, String> emptyString() { return (request, response) -> { request.releaseConnection(); EntityUtils.consumeQuietly(response.getEntity()); return StringUtils.EMPTY; }; } private  Defaults(); static Function<Exception, RuntimeException> passthrough(); static BiFunction<HttpRequestBase, HttpResponse, T> asNull(); static BiFunction<HttpRequestBase, HttpResponse, String> asString(); static BiFunction<HttpRequestBase, HttpResponse, String> emptyString(); static BiFunction<HttpRequestBase, HttpResponse, InputStream> emptyStream(); static BiFunction<HttpRequestBase, HttpResponse, InputStream> pipeStream(); static BiFunction<HttpRequestBase, HttpResponse, T> convertResponse(ObjectMapper mapper,
            Class<T> clazz); static BiFunction<HttpRequestBase, HttpResponse, T> convertResponse(ObjectMapper mapper,
            TypeReference<T> typeReference); static BiFunction<HttpRequestBase, HttpResponse, T> convertResponse(ObjectMapper mapper,
            TypeReference<T> typeReference, Function<Exception, T> errorHandler); static BiFunction<HttpRequestBase, HttpResponse, JsonNode> toJson(ObjectMapper mapper); static BiFunction<HttpRequestBase, HttpResponse, S> iterate(Class<T> clazz, ObjectMapper mapper,
            Function<Iterator<T>, S> convert); static ResponseEntity<String> getResponseEntity(HttpStatus status, HttpResponse response); }
Defaults { public static BiFunction<HttpRequestBase, HttpResponse, String> emptyString() { return (request, response) -> { request.releaseConnection(); EntityUtils.consumeQuietly(response.getEntity()); return StringUtils.EMPTY; }; } private  Defaults(); static Function<Exception, RuntimeException> passthrough(); static BiFunction<HttpRequestBase, HttpResponse, T> asNull(); static BiFunction<HttpRequestBase, HttpResponse, String> asString(); static BiFunction<HttpRequestBase, HttpResponse, String> emptyString(); static BiFunction<HttpRequestBase, HttpResponse, InputStream> emptyStream(); static BiFunction<HttpRequestBase, HttpResponse, InputStream> pipeStream(); static BiFunction<HttpRequestBase, HttpResponse, T> convertResponse(ObjectMapper mapper,
            Class<T> clazz); static BiFunction<HttpRequestBase, HttpResponse, T> convertResponse(ObjectMapper mapper,
            TypeReference<T> typeReference); static BiFunction<HttpRequestBase, HttpResponse, T> convertResponse(ObjectMapper mapper,
            TypeReference<T> typeReference, Function<Exception, T> errorHandler); static BiFunction<HttpRequestBase, HttpResponse, JsonNode> toJson(ObjectMapper mapper); static BiFunction<HttpRequestBase, HttpResponse, S> iterate(Class<T> clazz, ObjectMapper mapper,
            Function<Iterator<T>, S> convert); static ResponseEntity<String> getResponseEntity(HttpStatus status, HttpResponse response);  }