Skip to content

Instantly share code, notes, and snippets.

@c0rp-aubakirov
Created June 29, 2018 11:03
Show Gist options
  • Save c0rp-aubakirov/7f84579502fc414e453f7843db18d9d0 to your computer and use it in GitHub Desktop.
Save c0rp-aubakirov/7f84579502fc414e453f7843db18d9d0 to your computer and use it in GitHub Desktop.
public class StreamTest {
@Test
public static void test () {
final List<Integer> list = new ArrayList<>();
list.add(1);
list.add(2);
list.add(3);
final Stream<Integer> stream = list.stream().filter(a -> a > 2);
list.add(4);
stream.forEach(System.out::print);
}
}
@c0rp-aubakirov
Copy link
Author

Результат

[TestNG] Running:
  
34
===============================================
Default Suite
Total tests run: 1, Failures: 0, Skips: 0
===============================================

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment