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");