mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-09-03 04:26:12 +08:00
Adapt to PathMatchingResourcePatternResolver's behavior being reverted
See spring-projects/spring-framework#29163
This commit is contained in:
parent
5b092f5d80
commit
03b3a772c9
@ -94,7 +94,7 @@ class ClassLoaderFilesResourcePatternResolverTests {
|
||||
void getResourcesShouldReturnResources(@TempDir File directory) throws Exception {
|
||||
File file = createFile(directory, "name.class");
|
||||
Resource[] resources = this.resolver.getResources("file:" + directory.getAbsolutePath() + "/**");
|
||||
assertThat(resources).extracting(Resource::getFile).containsExactly(directory, file);
|
||||
assertThat(resources).extracting(Resource::getFile).containsExactly(file);
|
||||
}
|
||||
|
||||
@Test
|
||||
@ -102,7 +102,7 @@ class ClassLoaderFilesResourcePatternResolverTests {
|
||||
createFile(directory, "name.class");
|
||||
this.files.addFile(directory.getName(), "name.class", new ClassLoaderFile(Kind.DELETED, null));
|
||||
Resource[] resources = this.resolver.getResources("file:" + directory.getAbsolutePath() + "/**");
|
||||
assertThat(resources).extracting(Resource::getFile).containsExactly(directory);
|
||||
assertThat(resources).isEmpty();
|
||||
}
|
||||
|
||||
@Test
|
||||
|
Loading…
Reference in New Issue
Block a user