Skip to content

Commit

Permalink
Start building against Spring Framework 6.1.18 snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
snicoll committed Feb 28, 2025
1 parent 7d01c94 commit e696837
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ mavenVersion=3.9.4
mockitoVersion=5.11.0
nativeBuildToolsVersion=0.10.5
snakeYamlVersion=2.2
springFrameworkVersion=6.1.17
springFrameworkVersion=6.1.18-SNAPSHOT
springFramework60xVersion=6.0.23
tomcatVersion=10.1.36

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
import org.springframework.aot.hint.predicate.RuntimeHintsPredicates;
import org.springframework.beans.factory.BeanCreationException;
import org.springframework.beans.factory.BeanCurrentlyInCreationException;
import org.springframework.beans.factory.BeanDefinitionStoreException;
import org.springframework.beans.factory.ObjectProvider;
import org.springframework.beans.factory.UnsatisfiedDependencyException;
import org.springframework.beans.factory.annotation.Autowired;
Expand Down Expand Up @@ -221,8 +222,10 @@ void sourcesMustNotBeEmpty() {

@Test
void sourcesMustBeAccessible() {
assertThatIllegalArgumentException()
assertThatExceptionOfType(BeanDefinitionStoreException.class)
.isThrownBy(() -> new SpringApplication(InaccessibleConfiguration.class).run())
.havingRootCause()
.isInstanceOf(IllegalArgumentException.class)
.withMessageContaining("No visible constructors");
}

Expand Down Expand Up @@ -1602,6 +1605,11 @@ static class InaccessibleConfiguration {
private InaccessibleConfiguration() {
}

@Bean
String testMessage() {
return "test";
}

}

static class SpyApplicationContext extends AnnotationConfigApplicationContext {
Expand Down

0 comments on commit e696837

Please sign in to comment.