From d26265420ac3a459e92b53492a5733eae07d79f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Deleuze?= Date: Tue, 2 Apr 2024 13:19:34 +0200 Subject: [PATCH] Avoid removal warnings in tests See gh-27619 --- .../web/reactive/config/ResourceHandlerRegistryTests.java | 3 +-- .../web/reactive/resource/WebJarsResourceResolverTests.java | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-webflux/src/test/java/org/springframework/web/reactive/config/ResourceHandlerRegistryTests.java b/spring-webflux/src/test/java/org/springframework/web/reactive/config/ResourceHandlerRegistryTests.java index 57013e09cfbb..a01e7fe632b9 100644 --- a/spring-webflux/src/test/java/org/springframework/web/reactive/config/ResourceHandlerRegistryTests.java +++ b/spring-webflux/src/test/java/org/springframework/web/reactive/config/ResourceHandlerRegistryTests.java @@ -44,7 +44,6 @@ import org.springframework.web.reactive.resource.ResourceUrlProvider; import org.springframework.web.reactive.resource.ResourceWebHandler; import org.springframework.web.reactive.resource.VersionResourceResolver; -import org.springframework.web.reactive.resource.WebJarsResourceResolver; import org.springframework.web.testfixture.http.server.reactive.MockServerHttpRequest; import org.springframework.web.testfixture.server.MockServerWebExchange; import org.springframework.web.util.pattern.PathPatternParser; @@ -183,7 +182,7 @@ void resourceChainWithVersionResolver() { void resourceChainWithOverrides() { CachingResourceResolver cachingResolver = mock(); VersionResourceResolver versionResolver = mock(); - WebJarsResourceResolver webjarsResolver = mock(); + LiteWebJarsResourceResolver webjarsResolver = mock(); PathResourceResolver pathResourceResolver = new PathResourceResolver(); CachingResourceTransformer cachingTransformer = mock(); CssLinkResourceTransformer cssLinkTransformer = new CssLinkResourceTransformer(); diff --git a/spring-webflux/src/test/java/org/springframework/web/reactive/resource/WebJarsResourceResolverTests.java b/spring-webflux/src/test/java/org/springframework/web/reactive/resource/WebJarsResourceResolverTests.java index 085b8c2f9c5c..6ccb6b646034 100644 --- a/spring-webflux/src/test/java/org/springframework/web/reactive/resource/WebJarsResourceResolverTests.java +++ b/spring-webflux/src/test/java/org/springframework/web/reactive/resource/WebJarsResourceResolverTests.java @@ -41,6 +41,7 @@ * @author Rossen Stoyanchev * @author Brian Clozel */ +@SuppressWarnings("removal") class WebJarsResourceResolverTests { private static final Duration TIMEOUT = Duration.ofSeconds(1);