From a37d06a83fe5cc6cb840884673eb610fa2c14432 Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Tue, 6 May 2025 13:36:43 +0100 Subject: [PATCH] Remove unused config class from RestClientAutoConfigurationTests Closes gh-45372 --- .../client/RestClientAutoConfigurationTests.java | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/web/client/RestClientAutoConfigurationTests.java b/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/web/client/RestClientAutoConfigurationTests.java index 576d6e45808..ca21ea06459 100644 --- a/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/web/client/RestClientAutoConfigurationTests.java +++ b/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/web/client/RestClientAutoConfigurationTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2023 the original author or authors. + * Copyright 2012-2025 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. @@ -26,7 +26,6 @@ import org.springframework.boot.autoconfigure.http.HttpMessageConvertersAutoConf import org.springframework.boot.ssl.SslBundles; import org.springframework.boot.test.context.runner.ApplicationContextRunner; import org.springframework.boot.web.client.RestClientCustomizer; -import org.springframework.boot.web.codec.CodecCustomizer; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.http.converter.HttpMessageConverter; @@ -156,16 +155,6 @@ class RestClientAutoConfigurationTests { }); } - @Configuration(proxyBeanMethods = false) - static class CodecConfiguration { - - @Bean - CodecCustomizer myCodecCustomizer() { - return mock(CodecCustomizer.class); - } - - } - @Configuration(proxyBeanMethods = false) static class RestClientCustomizerConfig {