mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-17 08:24:13 +00:00
Adapt bean overriding test for deferred BeanRegistrar processing in 7.1
See gh-36648 See gh-21497
This commit is contained in:
+2
-2
@@ -655,8 +655,8 @@ class GenericApplicationContextTests {
|
||||
void beanRegistrarWithDefinitionOverride() {
|
||||
GenericApplicationContext context = new GenericApplicationContext();
|
||||
context.setAllowBeanDefinitionOverriding(false);
|
||||
assertThatExceptionOfType(BeanDefinitionOverrideException.class).isThrownBy(
|
||||
() -> context.register(new OverridingBeanRegistrar()));
|
||||
context.register(new OverridingBeanRegistrar());
|
||||
assertThatExceptionOfType(BeanDefinitionOverrideException.class).isThrownBy(context::refresh);
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Reference in New Issue
Block a user