mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
Polish ResourceHintsPredicates
As of #28620, `ResourcePatternHint` exposes its `toRegex` method. The predicates should use it directly and mirror the exact matching behavior. See gh-28555
This commit is contained in:
+1
-1
@@ -42,7 +42,7 @@ class ResourceHintsPredicatesTests {
|
||||
|
||||
@Test
|
||||
void resourcePatternMatchesResourceName() {
|
||||
this.runtimeHints.resources().registerPattern("/test/spring.*");
|
||||
this.runtimeHints.resources().registerPattern("/test/*");
|
||||
assertPredicateMatches(resources.forResource("/test/spring.properties"));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user