Fix build

Commit 29f085bd1a690ff7281e00b3a925e1160850ffbb in Spring Framework
automatically registers hints for enclosing directories. This fixes the
tests to use a contains instead of exact match.
This commit is contained in:
Moritz Halbritter
2022-10-31 16:59:15 +01:00
parent 5e034eab59
commit 4fef5291bf
2 changed files with 2 additions and 2 deletions

View File

@@ -66,7 +66,7 @@ class WebResourcesRuntimeHintsTests {
private Consumer<ResourcePatternHints> include(String... patterns) {
return (hint) -> {
assertThat(hint.getIncludes()).map(ResourcePatternHint::getPattern).containsExactly(patterns);
assertThat(hint.getIncludes()).map(ResourcePatternHint::getPattern).contains(patterns);
assertThat(hint.getExcludes()).isEmpty();
};
}

View File

@@ -107,7 +107,7 @@ class ConfigDataLocationRuntimeHintsTests {
private Consumer<ResourcePatternHints> includes(String... patterns) {
return (hint) -> {
assertThat(hint.getIncludes().stream().map(ResourcePatternHint::getPattern))
.containsExactlyInAnyOrder(patterns);
.contains(patterns);
assertThat(hint.getExcludes()).isEmpty();
};
}