Polishing

This commit is contained in:
Sam Brannen
2024-10-04 15:48:26 +02:00
parent c4c005b82e
commit d957d01d14
2 changed files with 7 additions and 12 deletions

View File

@@ -155,18 +155,13 @@ class AotIntegrationTests extends AbstractAotTests {
runEndToEndTests(testClasses, false);
}
@Disabled("Comment out to run @TestBean integration tests in AOT mode")
@Disabled("Comment out to run Bean Override integration tests in AOT mode")
@Test
void endToEndTestsForTestBeanOverrideTestClasses() {
List<Class<?>> testClasses = List.of(
org.springframework.test.context.aot.samples.bean.override.convention.TestBeanJupiterTests.class,
org.springframework.test.context.bean.override.convention.TestBeanForByNameLookupIntegrationTests.class,
org.springframework.test.context.bean.override.convention.TestBeanForByNameLookupIntegrationTests.TestBeanFieldInEnclosingClassTests.class,
org.springframework.test.context.bean.override.convention.TestBeanForByNameLookupIntegrationTests.TestBeanFieldInEnclosingClassTests.TestBeanFieldInEnclosingClassLevel2Tests.class,
org.springframework.test.context.bean.override.convention.TestBeanForByNameLookupIntegrationTests.TestBeanFactoryMethodInEnclosingClassTests.class,
org.springframework.test.context.bean.override.convention.TestBeanForByNameLookupIntegrationTests.TestBeanFactoryMethodInEnclosingClassTests.TestBeanFactoryMethodInEnclosingClassLevel2Tests.class
);
void endToEndTestsForBeanOverrides() {
List<Class<?>> testClasses = createTestClassScanner()
.scan("org.springframework.test.context.bean.override")
.filter(clazz -> clazz.getSimpleName().endsWith("Tests"))
.toList();
runEndToEndTests(testClasses, true);
}

View File

@@ -129,7 +129,7 @@ public class TestBeanForByTypeLookupIntegrationTests {
}
@FunctionalInterface
interface MessageService {
public interface MessageService {
String getMessage();
}