-
Notifications
You must be signed in to change notification settings - Fork 40.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add setAllowBeanDefinitionOverriding method to ApplicationContextRunner #18019
Comments
For consistency with SpringApplication, this commit disables bean overriding by default in ApplicationContextRunner. Bean overriding can be enabled again using withAllowBeanDefinitionOverriding. Closes spring-projectsgh-18019
I've given this one a try and a few tests in |
I've fixed a few tests that were a little bit brittle but I can't seem to grasp what |
What was the problem with |
Sorry I meant |
It looks a bit broken to me. The There's a similar pattern across a number of test classes related to Cassandra. I suspect it may have been written once and then copied to other classes as they were added. It looks to me as if we should rework all of the affected classes to remove the use of |
Thanks Andy, I've polished things up in bc066d2 |
For consistency with SpringApplication, this commit disables bean overriding by default in ApplicationContextRunner. Bean overriding can be enabled again using withAllowBeanDefinitionOverriding. Closes spring-projectsgh-18019
See #17963 for background. As well as fixing the name generation we should add a
setAllowBeanDefinitionOverriding
method and align withSpringApplication
.The text was updated successfully, but these errors were encountered: