Consistently include leading slash for classpath: resources in the TCF

This commit is contained in:
Sam Brannen
2022-09-04 15:09:56 +02:00
parent 920fbb34c8
commit dcf160e427
5 changed files with 13 additions and 7 deletions

View File

@@ -73,7 +73,7 @@ class BootstrapTestUtilsMergedConfigTests extends AbstractContextConfigurationUt
assertMergedConfig(
mergedConfig,
testClass,
array("classpath:org/springframework/test/context/support/AbstractContextConfigurationUtilsTests$BareAnnotations-context.xml"),
array("classpath:/org/springframework/test/context/support/AbstractContextConfigurationUtilsTests$BareAnnotations-context.xml"),
EMPTY_CLASS_ARRAY, DelegatingSmartContextLoader.class);
}

View File

@@ -78,7 +78,7 @@ class GenericXmlContextLoaderResourceLocationsTests {
args(ClasspathNonExistentDefaultLocationsTestCase.class, array()),
args(ClasspathExistentDefaultLocationsTestCase.class, array(
"classpath:org/springframework/test/context/support/GenericXmlContextLoaderResourceLocationsTests$ClasspathExistentDefaultLocationsTestCase-context.xml")),
"classpath:/org/springframework/test/context/support/GenericXmlContextLoaderResourceLocationsTests$ClasspathExistentDefaultLocationsTestCase-context.xml")),
args(ImplicitClasspathLocationsTestCase.class,
array("classpath:/org/springframework/test/context/support/context1.xml",