From 1f537b97d55c53c03d2b33dac9894fadf3301f95 Mon Sep 17 00:00:00 2001 From: Sam Brannen <104798+sbrannen@users.noreply.github.com> Date: Wed, 29 May 2024 13:35:26 +0200 Subject: [PATCH] Demonstrate how to disable Bean Override tests in AOT mode See gh-29122 --- .../springframework/test/context/aot/AotIntegrationTests.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/spring-test/src/test/java/org/springframework/test/context/aot/AotIntegrationTests.java b/spring-test/src/test/java/org/springframework/test/context/aot/AotIntegrationTests.java index 07637c03fea6..465611f31ef0 100644 --- a/spring-test/src/test/java/org/springframework/test/context/aot/AotIntegrationTests.java +++ b/spring-test/src/test/java/org/springframework/test/context/aot/AotIntegrationTests.java @@ -137,6 +137,8 @@ void endToEndTestsForEntireSpringTestModule() { .filter(clazz -> clazz.getSimpleName().endsWith("Tests")) // TestNG EJB tests use @PersistenceContext which is not yet supported in tests in AOT mode. .filter(clazz -> !clazz.getPackageName().contains("testng.transaction.ejb")) + // Uncomment the following to disable Bean Override tests since they are not yet supported in AOT mode. + // .filter(clazz -> !clazz.getPackageName().contains("test.context.bean.override")) .toList(); // Optionally set failOnError flag to true to halt processing at the first failure. @@ -147,6 +149,8 @@ void endToEndTestsForEntireSpringTestModule() { @Test void endToEndTestsForSelectedTestClasses() { List> testClasses = List.of( + org.springframework.test.context.bean.override.convention.TestBeanIntegrationTests.class, + org.springframework.test.context.bean.override.mockito.MockitoBeanIntegrationTests.class, org.springframework.test.context.junit4.SpringJUnit4ClassRunnerAppCtxTests.class, org.springframework.test.context.junit4.ParameterizedDependencyInjectionTests.class );