Skip to content

Commit

Permalink
Upgrade to jetty-reactive-httpclient:4.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
poutsma committed Jan 10, 2024
1 parent 49d3ec5 commit b1dd9ad
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion framework-platform/framework-platform.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ dependencies {
api("org.codehaus.jettison:jettison:1.5.4")
api("org.crac:crac:1.4.0")
api("org.dom4j:dom4j:2.1.4")
api("org.eclipse.jetty:jetty-reactive-httpclient:4.0.1")
api("org.eclipse.jetty:jetty-reactive-httpclient:4.0.2")
api("org.eclipse.persistence:org.eclipse.persistence.jpa:3.0.4")
api("org.eclipse:yasson:2.0.4")
api("org.ehcache:ehcache:3.10.8")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2002-2023 the original author or authors.
* Copyright 2002-2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -481,7 +481,7 @@ void retrieveJsonNull(ClientHttpConnector connector) {
.retrieve()
.bodyToMono(Map.class);

StepVerifier.create(result).verifyComplete();
StepVerifier.create(result).expectComplete().verify(Duration.ofSeconds(3));
}

@ParameterizedWebClientTest // SPR-15946
Expand Down Expand Up @@ -842,7 +842,7 @@ void statusHandlerWithErrorBodyTransformation(ClientHttpConnector connector) {
MyException error = (MyException) throwable;
assertThat(error.getMessage()).isEqualTo("foofoo");
})
.verify();
.verify(Duration.ofSeconds(3));
}

@ParameterizedWebClientTest
Expand Down Expand Up @@ -884,7 +884,7 @@ void statusHandlerSuppressedErrorSignal(ClientHttpConnector connector) {

StepVerifier.create(result)
.expectNext("Internal Server error")
.verifyComplete();
.expectComplete().verify(Duration.ofSeconds(3));

expectRequestCount(1);
expectRequest(request -> {
Expand Down Expand Up @@ -914,7 +914,7 @@ void statusHandlerSuppressedErrorSignalWithFlux(ClientHttpConnector connector) {

StepVerifier.create(result)
.expectNext("Internal Server error")
.verifyComplete();
.expectComplete().verify(Duration.ofSeconds(3));

expectRequestCount(1);
expectRequest(request -> {
Expand Down Expand Up @@ -1072,7 +1072,7 @@ void exchangeForEmptyBodyAsVoidEntity(ClientHttpConnector connector) {

StepVerifier.create(result)
.assertNext(r -> assertThat(r.getStatusCode().is2xxSuccessful()).isTrue())
.verifyComplete();
.expectComplete().verify(Duration.ofSeconds(3));
}

@ParameterizedWebClientTest
Expand Down Expand Up @@ -1241,7 +1241,7 @@ void malformedResponseChunksOnBodilessEntity(ClientHttpConnector connector) {
WebClientException ex = (WebClientException) throwable;
assertThat(ex.getCause()).isInstanceOf(IOException.class);
})
.verify();
.verify(Duration.ofSeconds(3));
}

@ParameterizedWebClientTest
Expand All @@ -1253,7 +1253,7 @@ void malformedResponseChunksOnEntityWithBody(ClientHttpConnector connector) {
WebClientException ex = (WebClientException) throwable;
assertThat(ex.getCause()).isInstanceOf(IOException.class);
})
.verify();
.verify(Duration.ofSeconds(3));
}

@ParameterizedWebClientTest
Expand Down

0 comments on commit b1dd9ad

Please sign in to comment.