GH-69 - Switch to Stream.toList().

This commit is contained in:
Oliver Drotbohm
2022-11-11 18:38:53 +01:00
parent d96263fe30
commit 55b16857f3
16 changed files with 27 additions and 34 deletions

View File

@@ -147,7 +147,7 @@ class ModulesIntegrationTest {
assertThat(fromPackage.stream().map(ApplicationModule::getName)) //
.containsExactlyInAnyOrderElementsOf(
modules.stream().map(ApplicationModule::getName).collect(Collectors.toList()));
modules.stream().map(ApplicationModule::getName).toList());
}
private static void verifyNamedInterfaces(NamedInterfaces interfaces, String name, Class<?>... types) {