From 6a95f03a6a4c6ddfafcdca431b64603fb56ca189 Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Fri, 12 Aug 2022 11:35:35 -0400 Subject: [PATCH] Sort members --- .../commons/lang3/stream/StreamsTest.java | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/test/java/org/apache/commons/lang3/stream/StreamsTest.java b/src/test/java/org/apache/commons/lang3/stream/StreamsTest.java index e85957b3c..073e9cc71 100644 --- a/src/test/java/org/apache/commons/lang3/stream/StreamsTest.java +++ b/src/test/java/org/apache/commons/lang3/stream/StreamsTest.java @@ -168,23 +168,12 @@ public class StreamsTest extends AbstractLangTest { assertEquals(2, Streams.of(Arrays.asList("A", "B")).collect(Collectors.toList()).size()); } - @Test - public void testOfIterableNotNull() { - assertEquals(2, Streams.of((Iterable) Arrays.asList("A", "B")).collect(Collectors.toList()).size()); - } - @Test public void testOfCollectionNull() { final List input = null; assertEquals(0, Streams.of(input).collect(Collectors.toList()).size()); } - @Test - public void testOfIterableNull() { - final Iterable input = null; - assertEquals(0, Streams.of(input).collect(Collectors.toList()).size()); - } - @Test public void testOfEnumeration() { final Hashtable table = new Hashtable<>(); @@ -199,6 +188,17 @@ public class StreamsTest extends AbstractLangTest { assertEquals(2, collect.size()); } + @Test + public void testOfIterableNotNull() { + assertEquals(2, Streams.of((Iterable) Arrays.asList("A", "B")).collect(Collectors.toList()).size()); + } + + @Test + public void testOfIterableNull() { + final Iterable input = null; + assertEquals(0, Streams.of(input).collect(Collectors.toList()).size()); + } + @Test public void testSimpleStreamFilter() { final List input = Arrays.asList("1", "2", "3", "4", "5", "6");