Skip to content

Commit e696837

Browse files
committed
Start building against Spring Framework 6.1.18 snapshots
See gh-44491
1 parent 7d01c94 commit e696837

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

gradle.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ mavenVersion=3.9.4
1919
mockitoVersion=5.11.0
2020
nativeBuildToolsVersion=0.10.5
2121
snakeYamlVersion=2.2
22-
springFrameworkVersion=6.1.17
22+
springFrameworkVersion=6.1.18-SNAPSHOT
2323
springFramework60xVersion=6.0.23
2424
tomcatVersion=10.1.36
2525

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

+9-1
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
import org.springframework.aot.hint.predicate.RuntimeHintsPredicates;
4949
import org.springframework.beans.factory.BeanCreationException;
5050
import org.springframework.beans.factory.BeanCurrentlyInCreationException;
51+
import org.springframework.beans.factory.BeanDefinitionStoreException;
5152
import org.springframework.beans.factory.ObjectProvider;
5253
import org.springframework.beans.factory.UnsatisfiedDependencyException;
5354
import org.springframework.beans.factory.annotation.Autowired;
@@ -221,8 +222,10 @@ void sourcesMustNotBeEmpty() {
221222

222223
@Test
223224
void sourcesMustBeAccessible() {
224-
assertThatIllegalArgumentException()
225+
assertThatExceptionOfType(BeanDefinitionStoreException.class)
225226
.isThrownBy(() -> new SpringApplication(InaccessibleConfiguration.class).run())
227+
.havingRootCause()
228+
.isInstanceOf(IllegalArgumentException.class)
226229
.withMessageContaining("No visible constructors");
227230
}
228231

@@ -1602,6 +1605,11 @@ static class InaccessibleConfiguration {
16021605
private InaccessibleConfiguration() {
16031606
}
16041607

1608+
@Bean
1609+
String testMessage() {
1610+
return "test";
1611+
}
1612+
16051613
}
16061614

16071615
static class SpyApplicationContext extends AnnotationConfigApplicationContext {

0 commit comments

Comments
 (0)