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
This commit is contained in:
@@ -134,7 +134,7 @@ public class EntryStreamTest {
|
|||||||
final List<Integer> values = new ArrayList<>();
|
final List<Integer> values = 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)))
|
||||||
.peekValue(values::add)
|
.peekValue(values::add)
|
||||||
.collect(Collectors.toList());
|
.toList();
|
||||||
Assert.assertEquals(Arrays.asList(1, 2, 1, 2), values);
|
Assert.assertEquals(Arrays.asList(1, 2, 1, 2), values);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user