From 1036285d3cdace965be372b5322f3a3a1522cb9a Mon Sep 17 00:00:00 2001 From: Grzegorz Piwowarek Date: Wed, 21 Aug 2024 08:34:39 +0200 Subject: [PATCH] Simplify shouldReturnEmptyIfZeroParts (#908) --- .../java/com/pivovarit/collectors/BatchingSpliteratorTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/java/com/pivovarit/collectors/BatchingSpliteratorTest.java b/src/test/java/com/pivovarit/collectors/BatchingSpliteratorTest.java index 2015ee94..06be42b5 100644 --- a/src/test/java/com/pivovarit/collectors/BatchingSpliteratorTest.java +++ b/src/test/java/com/pivovarit/collectors/BatchingSpliteratorTest.java @@ -60,7 +60,7 @@ void shouldReturnNestedListIfOneBatch() { @Test void shouldReturnEmptyIfZeroParts() { - assertThatThrownBy(() -> partitioned(Arrays.asList(1, 2, 3), 0).collect(Collectors.toList())); + assertThatThrownBy(() -> partitioned(Arrays.asList(1, 2, 3), 0).toList()); } @Test