diff --git a/spring-test/src/test/java/org/springframework/test/context/aot/samples/basic/BasicSpringJupiterSharedConfigTests.java b/spring-test/src/test/java/org/springframework/test/context/aot/samples/basic/BasicSpringJupiterSharedConfigTests.java index 0d718798ee8..452a2abfc7a 100644 --- a/spring-test/src/test/java/org/springframework/test/context/aot/samples/basic/BasicSpringJupiterSharedConfigTests.java +++ b/spring-test/src/test/java/org/springframework/test/context/aot/samples/basic/BasicSpringJupiterSharedConfigTests.java @@ -40,7 +40,7 @@ import static org.assertj.core.api.Assertions.assertThat; @SpringJUnitConfig({BasicTestConfiguration.class, ManagementConfiguration.class}) @TestPropertySource(properties = "test.engine = jupiter") // We cannot use `classpath*:` in AOT tests until gh-31088 is resolved. -// @YamlTestProperties("classpath*:org/springframework/test/context/aot/samples/basic/**/test?.yaml") +// @YamlTestProperties("classpath*:**/aot/samples/basic/test?.yaml") @YamlTestProperties({ "classpath:org/springframework/test/context/aot/samples/basic/test1.yaml", "classpath:org/springframework/test/context/aot/samples/basic/test2.yaml" diff --git a/spring-test/src/test/java/org/springframework/test/context/aot/samples/basic/BasicSpringJupiterTests.java b/spring-test/src/test/java/org/springframework/test/context/aot/samples/basic/BasicSpringJupiterTests.java index 5230c24fcf6..038350e5ed1 100644 --- a/spring-test/src/test/java/org/springframework/test/context/aot/samples/basic/BasicSpringJupiterTests.java +++ b/spring-test/src/test/java/org/springframework/test/context/aot/samples/basic/BasicSpringJupiterTests.java @@ -50,7 +50,7 @@ import static org.springframework.test.context.TestExecutionListeners.MergeMode. @TestExecutionListeners(listeners = DummyTestExecutionListener.class, mergeMode = MERGE_WITH_DEFAULTS) @TestPropertySource(properties = "test.engine = jupiter") // We cannot use `classpath*:` in AOT tests until gh-31088 is resolved. -// @YamlTestProperties("classpath*:org/springframework/test/context/aot/samples/basic/**/test?.yaml") +// @YamlTestProperties("classpath*:**/aot/samples/basic/test?.yaml") @YamlTestProperties({ "classpath:org/springframework/test/context/aot/samples/basic/test1.yaml", "classpath:org/springframework/test/context/aot/samples/basic/test2.yaml"