< prev index next >

test/java/nio/file/Files/StreamLinesTest.java

Print this page
rev 17325 : 8181761: add explicit @build actions for jdk.test.lib classes in all :tier2 tests
Reviewed-by: duke


   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */
  23 
  24 /* @test
  25  * @bug 8072773
  26  * @library /test/lib /lib/testlibrary/bootlib
  27  * @build java.base/java.util.stream.OpTestCase

  28  * @run testng/othervm StreamLinesTest
  29  * @summary Tests streams returned from Files.lines, primarily focused on
  30  *          testing the file-channel-based stream stream with supported
  31  *          character sets
  32  * @key randomness
  33  */
  34 
  35 import org.testng.annotations.DataProvider;
  36 import org.testng.annotations.Test;
  37 
  38 import java.io.BufferedReader;
  39 import java.io.BufferedWriter;
  40 import java.io.IOException;
  41 import java.nio.charset.Charset;
  42 import java.nio.charset.StandardCharsets;
  43 import java.nio.file.Files;
  44 import java.nio.file.Path;
  45 import java.nio.file.StandardOpenOption;
  46 import java.util.ArrayList;
  47 import java.util.Arrays;




   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */
  23 
  24 /* @test
  25  * @bug 8072773
  26  * @library /test/lib /lib/testlibrary/bootlib
  27  * @build java.base/java.util.stream.OpTestCase
  28  *        jdk.test.lib.RandomFactory
  29  * @run testng/othervm StreamLinesTest
  30  * @summary Tests streams returned from Files.lines, primarily focused on
  31  *          testing the file-channel-based stream stream with supported
  32  *          character sets
  33  * @key randomness
  34  */
  35 
  36 import org.testng.annotations.DataProvider;
  37 import org.testng.annotations.Test;
  38 
  39 import java.io.BufferedReader;
  40 import java.io.BufferedWriter;
  41 import java.io.IOException;
  42 import java.nio.charset.Charset;
  43 import java.nio.charset.StandardCharsets;
  44 import java.nio.file.Files;
  45 import java.nio.file.Path;
  46 import java.nio.file.StandardOpenOption;
  47 import java.util.ArrayList;
  48 import java.util.Arrays;


< prev index next >