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:
@@ -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();
|
||||
};
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user