File tree 2 files changed +10
-2
lines changed
spring-boot-project/spring-boot/src/test/java/org/springframework/boot
2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ mavenVersion=3.9.4
19
19
mockitoVersion =5.11.0
20
20
nativeBuildToolsVersion =0.10.5
21
21
snakeYamlVersion =2.2
22
- springFrameworkVersion =6.1.17
22
+ springFrameworkVersion =6.1.18-SNAPSHOT
23
23
springFramework60xVersion =6.0.23
24
24
tomcatVersion =10.1.36
25
25
Original file line number Diff line number Diff line change 48
48
import org .springframework .aot .hint .predicate .RuntimeHintsPredicates ;
49
49
import org .springframework .beans .factory .BeanCreationException ;
50
50
import org .springframework .beans .factory .BeanCurrentlyInCreationException ;
51
+ import org .springframework .beans .factory .BeanDefinitionStoreException ;
51
52
import org .springframework .beans .factory .ObjectProvider ;
52
53
import org .springframework .beans .factory .UnsatisfiedDependencyException ;
53
54
import org .springframework .beans .factory .annotation .Autowired ;
@@ -221,8 +222,10 @@ void sourcesMustNotBeEmpty() {
221
222
222
223
@ Test
223
224
void sourcesMustBeAccessible () {
224
- assertThatIllegalArgumentException ( )
225
+ assertThatExceptionOfType ( BeanDefinitionStoreException . class )
225
226
.isThrownBy (() -> new SpringApplication (InaccessibleConfiguration .class ).run ())
227
+ .havingRootCause ()
228
+ .isInstanceOf (IllegalArgumentException .class )
226
229
.withMessageContaining ("No visible constructors" );
227
230
}
228
231
@@ -1602,6 +1605,11 @@ static class InaccessibleConfiguration {
1602
1605
private InaccessibleConfiguration () {
1603
1606
}
1604
1607
1608
+ @ Bean
1609
+ String testMessage () {
1610
+ return "test" ;
1611
+ }
1612
+
1605
1613
}
1606
1614
1607
1615
static class SpyApplicationContext extends AnnotationConfigApplicationContext {
You can’t perform that action at this time.
0 commit comments