Browse Source

Demonstrate how to disable Bean Override tests in AOT mode

See gh-29122
pull/32926/head
Sam Brannen 2 years ago
parent
commit
1f537b97d5
  1. 4
      spring-test/src/test/java/org/springframework/test/context/aot/AotIntegrationTests.java

4
spring-test/src/test/java/org/springframework/test/context/aot/AotIntegrationTests.java

@ -137,6 +137,8 @@ class AotIntegrationTests extends AbstractAotTests { @@ -137,6 +137,8 @@ class AotIntegrationTests extends AbstractAotTests {
.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 @@ class AotIntegrationTests extends AbstractAotTests { @@ -147,6 +149,8 @@ class AotIntegrationTests extends AbstractAotTests {
@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
);

Loading…
Cancel
Save