From 8a1c8b5c2c61f941dc364813343bd4a43de6d7ef Mon Sep 17 00:00:00 2001 From: Scott Frederick Date: Tue, 17 May 2022 19:25:24 -0500 Subject: [PATCH] Fix deprecation warning See gh-30978 --- .../reactive/client/MetricsWebClientFilterFunctionTests.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-boot-project/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/metrics/web/reactive/client/MetricsWebClientFilterFunctionTests.java b/spring-boot-project/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/metrics/web/reactive/client/MetricsWebClientFilterFunctionTests.java index ba24586706..ad4ae96aa1 100644 --- a/spring-boot-project/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/metrics/web/reactive/client/MetricsWebClientFilterFunctionTests.java +++ b/spring-boot-project/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/metrics/web/reactive/client/MetricsWebClientFilterFunctionTests.java @@ -168,7 +168,7 @@ class MetricsWebClientFilterFunctionTests { void whenMetricsRecordingFailsThenFilteringSucceeds() { ClientRequest request = ClientRequest .create(HttpMethod.GET, URI.create("https://example.com/projects/spring-boot")).build(); - given(this.response.rawStatusCode()).willReturn(HttpStatus.OK.value()); + given(this.response.statusCode()).willReturn(HttpStatus.OK); this.tagsProvider.failOnce(); this.filterFunction.filter(request, this.exchange).block(Duration.ofSeconds(5)); }