Rename Testcontainers bean startup property

Old name: spring.testcontainers.startup
New name: spring.testcontainers.beans.startup

Closes gh-37073
This commit is contained in:
Moritz Halbritter
2023-10-19 09:22:27 +02:00
parent b8365e3118
commit 55dc2963ef
5 changed files with 5 additions and 5 deletions

View File

@@ -114,7 +114,7 @@ class TestcontainersLifecycleApplicationContextInitializerTests {
AnnotationConfigApplicationContext applicationContext = new AnnotationConfigApplicationContext();
applicationContext.getEnvironment()
.getPropertySources()
.addLast(new MapPropertySource("test", Map.of("spring.testcontainers.startup", "parallel")));
.addLast(new MapPropertySource("test", Map.of("spring.testcontainers.beans.startup", "parallel")));
new TestcontainersLifecycleApplicationContextInitializer().initialize(applicationContext);
AbstractBeanFactory beanFactory = (AbstractBeanFactory) applicationContext.getBeanFactory();
BeanPostProcessor beanPostProcessor = beanFactory.getBeanPostProcessors()

View File

@@ -82,7 +82,7 @@ class TestcontainersStartupTests {
MockEnvironment environment = new MockEnvironment();
assertThatIllegalArgumentException()
.isThrownBy(() -> TestcontainersStartup.get(environment.withProperty(PROPERTY, "bad")))
.withMessage("Unknown 'spring.testcontainers.startup' property value 'bad'");
.withMessage("Unknown 'spring.testcontainers.beans.startup' property value 'bad'");
}
private List<TestStartable> createTestStartables(int size) {