@@ -0,0 +1,840 @@
+package jdk.java.util.steam;%0D%0A%0D%0Aimport java.io.File;%0D%0Aimport java.io.IOException;%0D%0Aimport java.nio.file.Files;%0D%0Aimport java.nio.file.Path;%0D%0Aimport java.util.stream.Stream;%0D%0A%0D%0Aimport org.junit.Test;%0D%0Aimport org.slf4j.Logger;%0D%0Aimport org.slf4j.LoggerFactory;%0D%0A%0D%0A/**%0D%0A * %ED%85%8C%EC%8A%A4%ED%8A%B8 %EC%9C%A0%EB%8B%9B: %EC%8A%A4%ED%8A%B8%EB%A6%BC%EA%B3%BC %EB%9E%8C%EB%8B%A4%0D%0A * %0D%0A * required jdk8 or higher%0D%0A * %0D%0A * @since 2018-07-16%0D%0A * @author fixalot%0D%0A */%0D%0Apublic class StreamTest %7B%0D%0A%09private static final Logger logger = LoggerFactory.getLogger(StreamTest.class);%0D%0A%0D%0A%09@Test%0D%0A%09public void test() throws IOException %7B%0D%0A%09%09Path path = new File(%22/%22).toPath();%0D%0A%09%09Stream%3CPath%3E list = Files.list(path);%0D%0A%09%09list.forEach(System.out::println);%0D%0A%09%09list.close();%0D%0A%0D%0A%09%09Path path2 = new File(%22%22).toPath();%0D%0A%09%09Stream%3CPath%3E list2 = Files.list(path2);%0D%0A%09%09list2.forEach((k) -%3E %7B%0D%0A%09%09%09logger.debug(k.toString());%0D%0A%09%09%7D);%0D%0A%09%09list2.close();%0D%0A%09%7D%0D%0A%7D%0D%0A

add test unit