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 7006126 8020669 8024788 8019526
26 * @build BytesAndLines PassThroughFileSystem
27 * @run testng BytesAndLines
28 * @summary Unit test for methods for Files readAllBytes, readAllLines and
29 * and write methods.
30 */
31
32 import java.nio.ByteBuffer;
33 import java.nio.CharBuffer;
34 import java.nio.file.Files;
35 import java.nio.file.Path;
36 import java.nio.file.Paths;
37 import java.nio.file.OpenOption;
38 import static java.nio.file.StandardOpenOption.*;
39 import java.nio.charset.Charset;
40 import java.nio.charset.CharacterCodingException;
41 import java.nio.charset.MalformedInputException;
42 import java.nio.charset.UnmappableCharacterException;
43 import static java.nio.charset.StandardCharsets.*;
44 import java.util.Arrays;
45 import java.util.ArrayList;
46 import java.util.Collections;
47 import java.util.List;
48 import java.util.Random;
49 import java.util.concurrent.Callable;
|
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 7006126 8020669 8024788 8019526
26 * @build BytesAndLines PassThroughFileSystem
27 * @run testng BytesAndLines
28 * @summary Unit test for methods for Files readAllBytes, readAllLines and
29 * and write methods.
30 * @key randomness
31 */
32
33 import java.nio.ByteBuffer;
34 import java.nio.CharBuffer;
35 import java.nio.file.Files;
36 import java.nio.file.Path;
37 import java.nio.file.Paths;
38 import java.nio.file.OpenOption;
39 import static java.nio.file.StandardOpenOption.*;
40 import java.nio.charset.Charset;
41 import java.nio.charset.CharacterCodingException;
42 import java.nio.charset.MalformedInputException;
43 import java.nio.charset.UnmappableCharacterException;
44 import static java.nio.charset.StandardCharsets.*;
45 import java.util.Arrays;
46 import java.util.ArrayList;
47 import java.util.Collections;
48 import java.util.List;
49 import java.util.Random;
50 import java.util.concurrent.Callable;
|