Skip to content

Commit

Permalink
Demonstrate how to disable Bean Override tests in AOT mode
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrannen committed May 29, 2024
1 parent cade3c7 commit 1f537b9
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -147,6 +149,8 @@ void endToEndTestsForEntireSpringTestModule() {
@Test
void endToEndTestsForSelectedTestClasses() {
List<Class<?>> 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
);
Expand Down

0 comments on commit 1f537b9

Please sign in to comment.