diff --git a/libraries-6/pom.xml b/libraries-6/pom.xml
index 9fa44d3a32..f073ca424c 100644
--- a/libraries-6/pom.xml
+++ b/libraries-6/pom.xml
@@ -197,7 +197,7 @@
1.10.0
2.7.1
4.8.1
- 0.12.1
+ 2.1.0
1.15
3.6
3.5-beta72
diff --git a/libraries-6/src/test/java/com/baeldung/resilence4j/Resilience4jUnitTest.java b/libraries-6/src/test/java/com/baeldung/resilence4j/Resilience4jUnitTest.java
index 1d69d20bc2..ab4d9dde40 100644
--- a/libraries-6/src/test/java/com/baeldung/resilence4j/Resilience4jUnitTest.java
+++ b/libraries-6/src/test/java/com/baeldung/resilence4j/Resilience4jUnitTest.java
@@ -43,7 +43,7 @@ public class Resilience4jUnitTest {
// Percentage of failures to start short-circuit
.failureRateThreshold(20)
// Min number of call attempts
- .ringBufferSizeInClosedState(5)
+ .slidingWindowSize(5)
.build();
CircuitBreakerRegistry registry = CircuitBreakerRegistry.of(config);
CircuitBreaker circuitBreaker = registry.circuitBreaker("my");
@@ -70,7 +70,7 @@ public class Resilience4jUnitTest {
Future> taskInProgress = callAndBlock(decorated);
try {
- assertThat(bulkhead.isCallPermitted()).isFalse();
+ assertThat(bulkhead.tryAcquirePermission()).isFalse();
} finally {
taskInProgress.cancel(true);
}
diff --git a/spring-web-modules/spring-rest-http-2/pom.xml b/spring-web-modules/spring-rest-http-2/pom.xml
index bcacdbbdb1..c6c8cd2010 100644
--- a/spring-web-modules/spring-rest-http-2/pom.xml
+++ b/spring-web-modules/spring-rest-http-2/pom.xml
@@ -51,7 +51,7 @@
2.9.2
- 1.6.1
+ 2.1.0
1.7.0