diff options
Diffstat (limited to 'datafile-app-server/src/test')
-rw-r--r-- | datafile-app-server/src/test/java/org/onap/dcaegen2/collectors/datafile/http/HttpClientResponseHelper.java | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/datafile-app-server/src/test/java/org/onap/dcaegen2/collectors/datafile/http/HttpClientResponseHelper.java b/datafile-app-server/src/test/java/org/onap/dcaegen2/collectors/datafile/http/HttpClientResponseHelper.java index 22067d0b..c04b1a75 100644 --- a/datafile-app-server/src/test/java/org/onap/dcaegen2/collectors/datafile/http/HttpClientResponseHelper.java +++ b/datafile-app-server/src/test/java/org/onap/dcaegen2/collectors/datafile/http/HttpClientResponseHelper.java @@ -1,6 +1,6 @@ /*- * ============LICENSE_START====================================================================== - * Copyright (C) 2020-2021 Nokia. All rights reserved. + * Copyright (C) 2020-2022 Nokia. All rights reserved. * =============================================================================================== * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -27,6 +27,7 @@ import org.apache.http.ProtocolVersion; import org.apache.http.StatusLine; import org.apache.http.client.methods.CloseableHttpResponse; import org.apache.http.params.HttpParams; +import reactor.core.publisher.Mono; import reactor.netty.http.client.HttpClientResponse; import reactor.util.context.Context; import reactor.util.context.ContextView; @@ -122,6 +123,11 @@ public class HttpClientResponseHelper { public HttpResponseStatus status() { return HttpResponseStatus.OK; } + + @Override + public Mono<HttpHeaders> trailerHeaders() { + return null; + } }; public static final HttpClientResponse RESPONSE_ANY_NO_OK = new HttpClientResponse() { @@ -193,6 +199,11 @@ public class HttpClientResponseHelper { @Override public HttpResponseStatus status() { return HttpResponseStatus.NOT_IMPLEMENTED; } + + @Override + public Mono<HttpHeaders> trailerHeaders() { + return null; + } }; public static final CloseableHttpResponse APACHE_RESPONSE_OK = new CloseableHttpResponse() { |