Simplify some Stream API usages

See gh-19291
This commit is contained in:
dreis2211
2019-12-05 08:05:21 +01:00
committed by Stephane Nicoll
parent 5b92cd841d
commit b1158bf35d
3 changed files with 3 additions and 3 deletions

View File

@@ -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);
}