Sort members.
This commit is contained in:
parent
4af0444fbf
commit
4f059ec8e1
|
@ -142,18 +142,6 @@ public class StreamsTest {
|
||||||
assertEquals(2, Streams.of("foo", "bar").count());
|
assertEquals(2, Streams.of("foo", "bar").count());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
|
||||||
public void testStreamCollection() {
|
|
||||||
final List<String> input = Arrays.asList("1", "2", "3", "4", "5", "6");
|
|
||||||
assertEquals(6, Streams.stream(input).collect(Collectors.toList()).size());
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
|
||||||
public void testStreamCollectionNull() {
|
|
||||||
final List<String> input = null;
|
|
||||||
assertEquals(0, Streams.stream(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");
|
||||||
|
@ -191,6 +179,18 @@ public class StreamsTest {
|
||||||
assertEquals("For input string: \"4 \"", thrown.getMessage());
|
assertEquals("For input string: \"4 \"", thrown.getMessage());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testStreamCollection() {
|
||||||
|
final List<String> input = Arrays.asList("1", "2", "3", "4", "5", "6");
|
||||||
|
assertEquals(6, Streams.stream(input).collect(Collectors.toList()).size());
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testStreamCollectionNull() {
|
||||||
|
final List<String> input = null;
|
||||||
|
assertEquals(0, Streams.stream(input).collect(Collectors.toList()).size());
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testToArray() {
|
public void testToArray() {
|
||||||
final String[] array = Arrays.asList("2", "3", "1").stream().collect(Streams.toArray(String.class));
|
final String[] array = Arrays.asList("2", "3", "1").stream().collect(Streams.toArray(String.class));
|
||||||
|
|
Loading…
Reference in New Issue