< prev index next >

test/jdk/java/lang/ProcessBuilder/ReaderWriterTest.java

Print this page

 32 import jdk.test.lib.hexdump.HexPrinter;
 33 import jdk.test.lib.hexdump.HexPrinter.Formatters;
 34 
 35 import java.io.BufferedReader;
 36 import java.io.BufferedWriter;
 37 import java.io.IOException;
 38 import java.io.Writer;
 39 import java.nio.ByteBuffer;
 40 import java.nio.file.Path;
 41 import java.nio.file.Files;
 42 import java.nio.charset.Charset;
 43 import java.nio.charset.StandardCharsets;
 44 import java.nio.charset.UnsupportedCharsetException;
 45 import java.util.List;
 46 import java.util.Locale;
 47 
 48 import jtreg.SkippedException;
 49 
 50 /*
 51  * @test

 52  * @library /test/lib
 53  * @build jdk.test.lib.process.ProcessTools jdk.test.lib.hexdump.HexPrinter
 54  * @run testng ReaderWriterTest
 55  */
 56 
 57 @Test
 58 public class ReaderWriterTest {
 59 
 60     static final String ASCII = "ASCII: \u0000_A-Z_a-Z_\u007C_\u007D_\u007E_\u007F_;";
 61     static final String ISO_8859_1 = " Symbols: \u00AB_\u00BB_\u00fc_\u00fd_\u00fe_\u00ff;";
 62     static final String FRACTIONS = " Fractions: \u00bc_\u00bd_\u00be_\u00bf;";
 63 
 64     public static final String TESTCHARS = "OneWay: " + ASCII + ISO_8859_1 + FRACTIONS;
 65     public static final String ROUND_TRIP_TESTCHARS = "RoundTrip: " + ASCII + ISO_8859_1 + FRACTIONS;
 66 
 67     @DataProvider(name="CharsetCases")
 68     static Object[][] charsetCases() {
 69         return new Object[][] {
 70                 {"UTF-8"},
 71                 {"ISO8859-1"},

 32 import jdk.test.lib.hexdump.HexPrinter;
 33 import jdk.test.lib.hexdump.HexPrinter.Formatters;
 34 
 35 import java.io.BufferedReader;
 36 import java.io.BufferedWriter;
 37 import java.io.IOException;
 38 import java.io.Writer;
 39 import java.nio.ByteBuffer;
 40 import java.nio.file.Path;
 41 import java.nio.file.Files;
 42 import java.nio.charset.Charset;
 43 import java.nio.charset.StandardCharsets;
 44 import java.nio.charset.UnsupportedCharsetException;
 45 import java.util.List;
 46 import java.util.Locale;
 47 
 48 import jtreg.SkippedException;
 49 
 50 /*
 51  * @test
 52  * @requires vm.flagless
 53  * @library /test/lib
 54  * @build jdk.test.lib.process.ProcessTools jdk.test.lib.hexdump.HexPrinter
 55  * @run testng ReaderWriterTest
 56  */
 57 
 58 @Test
 59 public class ReaderWriterTest {
 60 
 61     static final String ASCII = "ASCII: \u0000_A-Z_a-Z_\u007C_\u007D_\u007E_\u007F_;";
 62     static final String ISO_8859_1 = " Symbols: \u00AB_\u00BB_\u00fc_\u00fd_\u00fe_\u00ff;";
 63     static final String FRACTIONS = " Fractions: \u00bc_\u00bd_\u00be_\u00bf;";
 64 
 65     public static final String TESTCHARS = "OneWay: " + ASCII + ISO_8859_1 + FRACTIONS;
 66     public static final String ROUND_TRIP_TESTCHARS = "RoundTrip: " + ASCII + ISO_8859_1 + FRACTIONS;
 67 
 68     @DataProvider(name="CharsetCases")
 69     static Object[][] charsetCases() {
 70         return new Object[][] {
 71                 {"UTF-8"},
 72                 {"ISO8859-1"},
< prev index next >