File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
spring-boot-project/spring-boot/src/test/java/org/springframework/boot Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 4646import org .springframework .aot .AotDetector ;
4747import org .springframework .beans .factory .BeanCreationException ;
4848import org .springframework .beans .factory .BeanCurrentlyInCreationException ;
49+ import org .springframework .beans .factory .BeanDefinitionStoreException ;
4950import org .springframework .beans .factory .ObjectProvider ;
5051import org .springframework .beans .factory .UnsatisfiedDependencyException ;
5152import org .springframework .beans .factory .annotation .Autowired ;
@@ -220,8 +221,10 @@ void sourcesMustNotBeEmpty() {
220221
221222 @ Test
222223 void sourcesMustBeAccessible () {
223- assertThatIllegalArgumentException ( )
224+ assertThatExceptionOfType ( BeanDefinitionStoreException . class )
224225 .isThrownBy (() -> new SpringApplication (InaccessibleConfiguration .class ).run ())
226+ .havingRootCause ()
227+ .isInstanceOf (IllegalArgumentException .class )
225228 .withMessageContaining ("No visible constructors" );
226229 }
227230
You can’t perform that action at this time.
0 commit comments