diff --git a/spring-boot-project/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/couchbase/CouchbaseHealthIndicatorTests.java b/spring-boot-project/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/couchbase/CouchbaseHealthIndicatorTests.java index e3345aa878d6..9fb13227903b 100644 --- a/spring-boot-project/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/couchbase/CouchbaseHealthIndicatorTests.java +++ b/spring-boot-project/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/couchbase/CouchbaseHealthIndicatorTests.java @@ -51,8 +51,9 @@ void couchbaseClusterIsUp() { Cluster cluster = mock(Cluster.class); CouchbaseHealthIndicator healthIndicator = new CouchbaseHealthIndicator(cluster); Map> endpoints = Collections.singletonMap(ServiceType.KV, - Collections.singletonList(new EndpointDiagnostics(ServiceType.KV, EndpointState.CONNECTED, "127.0.0.1", - "127.0.0.1", Optional.empty(), Optional.of(1234L), Optional.of("endpoint-1")))); + Collections.singletonList( + new EndpointDiagnostics(ServiceType.KV, EndpointState.CONNECTED, "127.0.0.1", "127.0.0.1", + Optional.empty(), Optional.of(1234L), Optional.of("endpoint-1"), Optional.empty()))); DiagnosticsResult diagnostics = new DiagnosticsResult(endpoints, "test-sdk", "test-id"); given(cluster.diagnostics()).willReturn(diagnostics); @@ -72,9 +73,9 @@ void couchbaseClusterIsDown() { Map> endpoints = Collections.singletonMap(ServiceType.KV, Arrays.asList( new EndpointDiagnostics(ServiceType.KV, EndpointState.CONNECTED, "127.0.0.1", "127.0.0.1", - Optional.empty(), Optional.of(1234L), Optional.of("endpoint-1")), + Optional.empty(), Optional.of(1234L), Optional.of("endpoint-1"), Optional.empty()), new EndpointDiagnostics(ServiceType.KV, EndpointState.CONNECTING, "127.0.0.1", "127.0.0.1", - Optional.empty(), Optional.of(1234L), Optional.of("endpoint-2")))); + Optional.empty(), Optional.of(1234L), Optional.of("endpoint-2"), Optional.empty()))); DiagnosticsResult diagnostics = new DiagnosticsResult(endpoints, "test-sdk", "test-id"); given(cluster.diagnostics()).willReturn(diagnostics); Health health = healthIndicator.health(); diff --git a/spring-boot-project/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/couchbase/CouchbaseReactiveHealthIndicatorTests.java b/spring-boot-project/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/couchbase/CouchbaseReactiveHealthIndicatorTests.java index adc00a875134..258ab7e1eaf9 100644 --- a/spring-boot-project/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/couchbase/CouchbaseReactiveHealthIndicatorTests.java +++ b/spring-boot-project/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/couchbase/CouchbaseReactiveHealthIndicatorTests.java @@ -49,8 +49,9 @@ void couchbaseClusterIsUp() { Cluster cluster = mock(Cluster.class); CouchbaseReactiveHealthIndicator healthIndicator = new CouchbaseReactiveHealthIndicator(cluster); Map> endpoints = Collections.singletonMap(ServiceType.KV, - Collections.singletonList(new EndpointDiagnostics(ServiceType.KV, EndpointState.CONNECTED, "127.0.0.1", - "127.0.0.1", Optional.empty(), Optional.of(1234L), Optional.of("endpoint-1")))); + Collections.singletonList( + new EndpointDiagnostics(ServiceType.KV, EndpointState.CONNECTED, "127.0.0.1", "127.0.0.1", + Optional.empty(), Optional.of(1234L), Optional.of("endpoint-1"), Optional.empty()))); DiagnosticsResult diagnostics = new DiagnosticsResult(endpoints, "test-sdk", "test-id"); given(cluster.diagnostics()).willReturn(diagnostics); Health health = healthIndicator.health().block(Duration.ofSeconds(30)); @@ -69,9 +70,9 @@ void couchbaseClusterIsDown() { Map> endpoints = Collections.singletonMap(ServiceType.KV, Arrays.asList( new EndpointDiagnostics(ServiceType.KV, EndpointState.CONNECTED, "127.0.0.1", "127.0.0.1", - Optional.empty(), Optional.of(1234L), Optional.of("endpoint-1")), + Optional.empty(), Optional.of(1234L), Optional.of("endpoint-1"), Optional.empty()), new EndpointDiagnostics(ServiceType.KV, EndpointState.CONNECTING, "127.0.0.1", "127.0.0.1", - Optional.empty(), Optional.of(1234L), Optional.of("endpoint-2")))); + Optional.empty(), Optional.of(1234L), Optional.of("endpoint-2"), Optional.empty()))); DiagnosticsResult diagnostics = new DiagnosticsResult(endpoints, "test-sdk", "test-id"); given(cluster.diagnostics()).willReturn(diagnostics); Health health = healthIndicator.health().block(Duration.ofSeconds(30));