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:
@@ -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