Skip to content

Commit 0b7c6af

Browse files
committed
Merge branch 'main' into java/http_api
2 parents 528dee7 + 7970dc7 commit 0b7c6af

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

java/build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ test {
4646
exceptionFormat "full"
4747
showCauses true
4848
showStackTraces true
49+
showStandardStreams true
4950
}
5051
}
5152

@@ -60,6 +61,7 @@ tasks.register('testWithoutErrorLogProducer', Test) {
6061
exceptionFormat "full"
6162
showCauses true
6263
showStackTraces true
64+
showStandardStreams true
6365
}
6466
}
6567

java/src/test/java/de/gdata/test/integration/RealApiIntegrationTests.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
import java.util.concurrent.ExecutionException;
2929
import java.util.concurrent.Flow;
3030
import java.util.concurrent.TimeoutException;
31+
import java.util.Optional;
3132

3233
import org.junit.jupiter.api.Test;
3334
import org.junit.jupiter.params.ParameterizedTest;
@@ -683,7 +684,6 @@ public void forFile_IfUnauthorized_ThrowsVaasAuthenticationException()
683684
.thenAnswer(invocation -> CompletableFuture.completedFuture(mockGetResponse));
684685

685686
when(mockHttpClient.sendAsync(
686-
argThat(postRequest -> postRequest != null
687687
&& postRequest.method().equals("POST")),
688688
any(HttpResponse.BodyHandler.class)))
689689
.thenAnswer(invocation -> CompletableFuture.completedFuture(mockPostResponse));
@@ -849,10 +849,6 @@ public void forStream_SendUserAgent() throws Exception {
849849
&& getRequest.uri().toString()
850850
.contains("useHashLookup=" + Boolean.toString(true))
851851
&& getRequest.headers().firstValue("User-Agent").toString()
852-
.contains("Java")),
853-
any(HttpResponse.BodyHandler.class)))
854-
.thenAnswer(invocation -> CompletableFuture.completedFuture(mockGetResponse));
855-
856852
when(mockHttpClient.sendAsync(
857853
argThat(postRequest -> postRequest != null
858854
&& postRequest.method().equals("POST")

0 commit comments

Comments
 (0)