Sort members
This commit is contained in:
parent
62910e4f32
commit
6a95f03a6a
|
@ -168,23 +168,12 @@ public class StreamsTest extends AbstractLangTest {
|
||||||
assertEquals(2, Streams.of(Arrays.asList("A", "B")).collect(Collectors.toList()).size());
|
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
|
@Test
|
||||||
public void testOfCollectionNull() {
|
public void testOfCollectionNull() {
|
||||||
final List<String> input = null;
|
final List<String> input = null;
|
||||||
assertEquals(0, Streams.of(input).collect(Collectors.toList()).size());
|
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
|
@Test
|
||||||
public void testOfEnumeration() {
|
public void testOfEnumeration() {
|
||||||
final Hashtable<String, Integer> table = new Hashtable<>();
|
final Hashtable<String, Integer> table = new Hashtable<>();
|
||||||
|
@ -199,6 +188,17 @@ public class StreamsTest extends AbstractLangTest {
|
||||||
assertEquals(2, collect.size());
|
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
|
@Test
|
||||||
public void testSimpleStreamFilter() {
|
public void testSimpleStreamFilter() {
|
||||||
final List<String> input = Arrays.asList("1", "2", "3", "4", "5", "6");
|
final List<String> input = Arrays.asList("1", "2", "3", "4", "5", "6");
|
||||||
|
|
Loading…
Reference in New Issue