Polish "Restore proxying of @Bean methods in @TestConfiguration"
See gh-18675
This commit is contained in:
@@ -25,7 +25,7 @@ import org.springframework.boot.test.context.TestConfiguration;
|
||||
*
|
||||
* @author Phillip Webb
|
||||
*/
|
||||
@TestConfiguration
|
||||
@TestConfiguration(proxyBeanMethods = false)
|
||||
@EntityScan("some.other.package")
|
||||
public class ExampleTestConfig {
|
||||
|
||||
|
||||
@@ -48,7 +48,7 @@ class AutoConfigureTestDatabaseWithNoDatabaseIntegrationTests {
|
||||
assertThat(this.context.getBeanNamesForType(DataSource.class)).isNotEmpty();
|
||||
}
|
||||
|
||||
@TestConfiguration
|
||||
@TestConfiguration(proxyBeanMethods = false)
|
||||
static class Config {
|
||||
|
||||
}
|
||||
|
||||
@@ -78,7 +78,7 @@ class MockMvcRestDocsAutoConfigurationAdvancedConfigurationIntegrationTests {
|
||||
assertThat(new File(defaultSnippetsDir, "response-fields.md")).isFile();
|
||||
}
|
||||
|
||||
@TestConfiguration
|
||||
@TestConfiguration(proxyBeanMethods = false)
|
||||
static class CustomizationConfiguration {
|
||||
|
||||
@Bean
|
||||
|
||||
@@ -82,7 +82,7 @@ class RestAssuredRestDocsAutoConfigurationAdvancedConfigurationIntegrationTests
|
||||
assertThat(new File(defaultSnippetsDir, "response-fields.md")).isFile();
|
||||
}
|
||||
|
||||
@TestConfiguration
|
||||
@TestConfiguration(proxyBeanMethods = false)
|
||||
static class CustomizationConfiguration {
|
||||
|
||||
@Bean
|
||||
|
||||
@@ -72,7 +72,7 @@ class WebTestClientRestDocsAutoConfigurationAdvancedConfigurationIntegrationTest
|
||||
assertThat(new File(defaultSnippetsDir, "response-fields.md")).isFile();
|
||||
}
|
||||
|
||||
@TestConfiguration
|
||||
@TestConfiguration(proxyBeanMethods = false)
|
||||
static class CustomizationConfiguration {
|
||||
|
||||
@Bean
|
||||
|
||||
@@ -44,7 +44,7 @@ class WebMvcTestServletFilterRegistrationDisabledIntegrationTests {
|
||||
this.mvc.perform(get("/one")).andExpect(header().string("x-test", (String) null));
|
||||
}
|
||||
|
||||
@TestConfiguration
|
||||
@TestConfiguration(proxyBeanMethods = false)
|
||||
static class DisabledRegistrationConfiguration {
|
||||
|
||||
@Bean
|
||||
|
||||
Reference in New Issue
Block a user