Skip to content

Commit b60bb44

Browse files
committed
Polish test @⁠Configuration classes
1 parent 31a6e98 commit b60bb44

12 files changed

+12
-12
lines changed

spring-test/src/test/java/org/springframework/test/context/bean/override/convention/TestBeanForByNameLookupIntegrationTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ void fieldHasOverride(ApplicationContext ctx) {
157157
}
158158

159159

160-
@Configuration
160+
@Configuration(proxyBeanMethods = false)
161161
static class Config {
162162

163163
@Bean("field")

spring-test/src/test/java/org/springframework/test/context/bean/override/convention/TestBeanForByTypeLookupIntegrationTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ void overrideIsFoundByTypeWithQualifierDisambiguation(ApplicationContext ctx) {
8888
}
8989

9090

91-
@Configuration
91+
@Configuration(proxyBeanMethods = false)
9292
static class Config {
9393

9494
@Bean("example")

spring-test/src/test/java/org/springframework/test/context/bean/override/convention/TestBeanForExternalFactoryMethodIntegrationTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ void test() {
4444
}
4545

4646

47-
@Configuration
47+
@Configuration(proxyBeanMethods = false)
4848
static class Config {
4949

5050
@Bean

spring-test/src/test/java/org/springframework/test/context/bean/override/convention/TestBeanForInheritanceIntegrationTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public String toString() {
9797
}
9898
}
9999

100-
@Configuration
100+
@Configuration(proxyBeanMethods = false)
101101
static class Config {
102102

103103
@Bean

spring-test/src/test/java/org/springframework/test/context/bean/override/convention/TestBeanForInterfaceIntegrationTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ void test() {
4545
}
4646

4747

48-
@Configuration
48+
@Configuration(proxyBeanMethods = false)
4949
static class Config {
5050

5151
@Bean

spring-test/src/test/java/org/springframework/test/context/bean/override/convention/TestBeanForMultipleNestingLevelsIntegrationTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ void test() {
104104
}
105105

106106

107-
@Configuration
107+
@Configuration(proxyBeanMethods = false)
108108
static class Config {
109109

110110
@Bean

spring-test/src/test/java/org/springframework/test/context/bean/override/mockito/MockitoBeanForByNameLookupIntegrationTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ void fieldIsMockedWhenNoOriginalBean(ApplicationContext ctx) {
116116
}
117117

118118

119-
@Configuration
119+
@Configuration(proxyBeanMethods = false)
120120
static class Config {
121121

122122
@Bean("field")

spring-test/src/test/java/org/springframework/test/context/bean/override/mockito/MockitoBeanForByTypeLookupIntegrationTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ interface AnotherService {
129129

130130
}
131131

132-
@Configuration
132+
@Configuration(proxyBeanMethods = false)
133133
static class Config {
134134

135135
@Bean("example")

spring-test/src/test/java/org/springframework/test/context/bean/override/mockito/MockitoBeanWithResetIntegrationTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ public Class<?> getObjectType() {
101101
}
102102
}
103103

104-
@Configuration
104+
@Configuration(proxyBeanMethods = false)
105105
static class Config {
106106

107107
@Bean("service")

spring-test/src/test/java/org/springframework/test/context/bean/override/mockito/MockitoSpyBeanForByNameLookupIntegrationTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ void renamedFieldHasOverride(ApplicationContext ctx) {
9898
}
9999
}
100100

101-
@Configuration
101+
@Configuration(proxyBeanMethods = false)
102102
static class Config {
103103

104104
@Bean("field")

0 commit comments

Comments
 (0)