You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2022/08/12 17:58:31 UTC
[commons-lang] 02/02: Sort members
This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-lang.git
commit 6a95f03a6a4c6ddfafcdca431b64603fb56ca189
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Fri Aug 12 11:35:35 2022 -0400
Sort members
---
.../apache/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<String>) Arrays.asList("A", "B")).collect(Collectors.toList()).size());
- }
-
@Test
public void testOfCollectionNull() {
final List<String> input = null;
assertEquals(0, Streams.of(input).collect(Collectors.toList()).size());
}
- @Test
- public void testOfIterableNull() {
- final Iterable<String> input = null;
- assertEquals(0, Streams.of(input).collect(Collectors.toList()).size());
- }
-
@Test
public void testOfEnumeration() {
final Hashtable<String, Integer> 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<String>) Arrays.asList("A", "B")).collect(Collectors.toList()).size());
+ }
+
+ @Test
+ public void testOfIterableNull() {
+ final Iterable<String> input = null;
+ assertEquals(0, Streams.of(input).collect(Collectors.toList()).size());
+ }
+
@Test
public void testSimpleStreamFilter() {
final List<String> input = Arrays.asList("1", "2", "3", "4", "5", "6");