Update hutool-core/src/test/java/cn/hutool/core/stream/EntryStreamTest.java

Co-authored-by: ZZemptypoint <1215582715@qq.com>
This commit is contained in:
黄成兴
2022-11-17 13:42:09 +08:00
committed by GitHub
parent f6a3a583c3
commit 6d3f296d70

View File

@@ -125,7 +125,7 @@ public class EntryStreamTest {
final List<Integer> keys = new ArrayList<>();
EntryStream.of(Arrays.asList(new Entry<>(1, 1), new Entry<>(1, 2), new Entry<>(2, 1), new Entry<>(2, 2)))
.peekKey(keys::add)
.collect(Collectors.toList());
.toList();
Assert.assertEquals(Arrays.asList(1, 1, 2, 2), keys);
}