Skip to content

Commit d04620d

Browse files
committed
Polish test
Include at least a bean declaration to make sure the cglib proxy is created
1 parent 4d99e4a commit d04620d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

spring-boot-project/spring-boot/src/test/java/org/springframework/boot/SpringApplicationTests.java

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2024 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.
@@ -1588,6 +1588,11 @@ static class InaccessibleConfiguration {
15881588
private InaccessibleConfiguration() {
15891589
}
15901590

1591+
@Bean
1592+
String testMessage() {
1593+
return "test";
1594+
}
1595+
15911596
}
15921597

15931598
static class SpyApplicationContext extends AnnotationConfigApplicationContext {

0 commit comments

Comments
 (0)