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:
Brian Clozel
2022-06-14 15:35:28 +02:00
parent aa48dec697
commit 7f7f458a59
2 changed files with 4 additions and 4 deletions
@@ -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"));
}