mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
Update hutool-core/src/test/java/cn/hutool/core/stream/EntryStreamTest.java
Co-authored-by: ZZemptypoint <1215582715@qq.com>
This commit is contained in:
@@ -125,7 +125,7 @@ public class EntryStreamTest {
|
|||||||
final List<Integer> keys = new ArrayList<>();
|
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)))
|
EntryStream.of(Arrays.asList(new Entry<>(1, 1), new Entry<>(1, 2), new Entry<>(2, 1), new Entry<>(2, 2)))
|
||||||
.peekKey(keys::add)
|
.peekKey(keys::add)
|
||||||
.collect(Collectors.toList());
|
.toList();
|
||||||
Assert.assertEquals(Arrays.asList(1, 1, 2, 2), keys);
|
Assert.assertEquals(Arrays.asList(1, 1, 2, 2), keys);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user