This commit is contained in:
Stéphane Nicoll
2024-04-11 08:45:26 +02:00
parent 77c6f160fe
commit 2e3a923225
16 changed files with 229 additions and 229 deletions

View File

@@ -177,8 +177,7 @@ class BeanOverrideBeanFactoryPostProcessorTests {
private AnnotationConfigApplicationContext createContext(Class<?>... classes) {
AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext();
BeanOverrideRegistrar.register(context, Set.of(classes));
BeanOverrideBeanFactoryPostProcessor.register(context);
BeanOverrideContextCustomizer.registerInfrastructure(context, Set.of(classes));
return context;
}
@@ -193,6 +192,7 @@ class BeanOverrideBeanFactoryPostProcessorTests {
*/
static final SomeInterface OVERRIDE = new SomeImplementation();
static final ExampleService OVERRIDE_SERVICE = new FailingExampleService();
static class ReplaceBeans {