@@ -212,9 +212,11 @@ private static void assertRuntimeHints(RuntimeHints runtimeHints) {
212
212
Stream .of (
213
213
// @TestExecutionListeners
214
214
org .springframework .test .context .aot .samples .basic .BasicSpringJupiterTests .DummyTestExecutionListener .class ,
215
+ // Auto-registered
215
216
org .springframework .test .context .event .ApplicationEventsTestExecutionListener .class ,
216
217
org .springframework .test .context .event .EventPublishingTestExecutionListener .class ,
217
218
org .springframework .test .context .jdbc .SqlScriptsTestExecutionListener .class ,
219
+ org .springframework .test .context .bean .override .BeanOverrideTestExecutionListener .class ,
218
220
org .springframework .test .context .support .DependencyInjectionTestExecutionListener .class ,
219
221
org .springframework .test .context .support .DirtiesContextBeforeModesTestExecutionListener .class ,
220
222
org .springframework .test .context .support .DirtiesContextTestExecutionListener .class ,
@@ -224,6 +226,7 @@ private static void assertRuntimeHints(RuntimeHints runtimeHints) {
224
226
225
227
// ContextCustomizerFactory
226
228
Stream .of (
229
+ "org.springframework.test.context.bean.override.BeanOverrideContextCustomizerFactory" ,
227
230
"org.springframework.test.context.support.DynamicPropertiesContextCustomizerFactory" ,
228
231
"org.springframework.test.context.web.socket.MockServerContainerContextCustomizerFactory" ,
229
232
"org.springframework.test.context.aot.samples.basic.ImportsContextCustomizerFactory"
@@ -271,8 +274,12 @@ private static void assertRuntimeHints(RuntimeHints runtimeHints) {
271
274
.accepts (runtimeHints );
272
275
273
276
// @BeanOverride(value = ...)
274
- assertReflectionRegistered (runtimeHints , "org.springframework.test.context.bean.override.mockito.MockitoBeanOverrideProcessor" ,
275
- INVOKE_DECLARED_CONSTRUCTORS );
277
+ Stream .of (
278
+ // @MockitoBean
279
+ "org.springframework.test.context.bean.override.mockito.MockitoBeanOverrideProcessor" ,
280
+ // @EasyMockBean
281
+ "org.springframework.test.context.bean.override.easymock.EasyMockBeanOverrideProcessor"
282
+ ).forEach (type -> assertReflectionRegistered (runtimeHints , type , INVOKE_DECLARED_CONSTRUCTORS ));
276
283
277
284
// GenericApplicationContext.preDetermineBeanTypes() should have registered proxy
278
285
// hints for the EasyMock interface-based mocks.
0 commit comments