Simplify some Stream API usages
See gh-19291
This commit is contained in:
committed by
Stephane Nicoll
parent
5b92cd841d
commit
b1158bf35d
@@ -96,7 +96,7 @@ class EmbeddedMongoAutoConfigurationTests {
|
||||
features.add(Feature.ONLY_WINDOWS_2008_SERVER);
|
||||
}
|
||||
load("spring.mongodb.embedded.features="
|
||||
+ String.join(", ", features.stream().map(Feature::name).collect(Collectors.toList())));
|
||||
+ features.stream().map(Feature::name).collect(Collectors.joining(", ")));
|
||||
assertThat(this.context.getBean(EmbeddedMongoProperties.class).getFeatures())
|
||||
.containsExactlyElementsOf(features);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user