Skip to content

Commit a37d06a

Browse files
committed
Remove unused config class from RestClientAutoConfigurationTests
Closes gh-45372
1 parent f66544b commit a37d06a

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/web/client/RestClientAutoConfigurationTests.java

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2023 the original author or authors.
2+
* Copyright 2012-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -26,7 +26,6 @@
2626
import org.springframework.boot.ssl.SslBundles;
2727
import org.springframework.boot.test.context.runner.ApplicationContextRunner;
2828
import org.springframework.boot.web.client.RestClientCustomizer;
29-
import org.springframework.boot.web.codec.CodecCustomizer;
3029
import org.springframework.context.annotation.Bean;
3130
import org.springframework.context.annotation.Configuration;
3231
import org.springframework.http.converter.HttpMessageConverter;
@@ -156,16 +155,6 @@ void restClientWhenHasCustomMessageConvertersShouldHaveMessageConverters() {
156155
});
157156
}
158157

159-
@Configuration(proxyBeanMethods = false)
160-
static class CodecConfiguration {
161-
162-
@Bean
163-
CodecCustomizer myCodecCustomizer() {
164-
return mock(CodecCustomizer.class);
165-
}
166-
167-
}
168-
169158
@Configuration(proxyBeanMethods = false)
170159
static class RestClientCustomizerConfig {
171160

0 commit comments

Comments
 (0)