Home
last modified time | relevance | path

Searched refs:file1 (Results 1 – 11 of 11) sorted by relevance

/libcore/ojluni/src/test/java/io/FileWriter/
DConstructorTest.java58 File file1 = File.createTempFile("FileWriterTest1", "txt"); in getParameters() local
62 {ConstructorType.STRING, file1, file2, StandardCharsets.UTF_8}, in getParameters()
63 {ConstructorType.FILE, file1, file2, StandardCharsets.UTF_8}, in getParameters()
64 {ConstructorType.STRING_APPEND, file1, file2, StandardCharsets.UTF_8}, in getParameters()
65 {ConstructorType.FILE_APPEND, file1, file2, StandardCharsets.UTF_8}, in getParameters()
66 {ConstructorType.STRING, file1, file2, StandardCharsets.ISO_8859_1}, in getParameters()
67 {ConstructorType.FILE, file1, file2, StandardCharsets.ISO_8859_1}, in getParameters()
68 {ConstructorType.STRING_APPEND, file1, file2, StandardCharsets.ISO_8859_1}, in getParameters()
69 {ConstructorType.FILE_APPEND, file1, file2, StandardCharsets.ISO_8859_1}, in getParameters()
85 void test(ConstructorType type, File file1, File file2, Charset charset) in test() argument
[all …]
/libcore/ojluni/src/test/java/io/FileReader/
DConstructorTest.java57 File file1 = new File(USER_DIR, "FileReaderTest1.txt"); in getParameters() local
61 {ConstructorType.STRING, file1, file2, StandardCharsets.UTF_8}, in getParameters()
62 {ConstructorType.FILE, file1, file2, StandardCharsets.UTF_8}, in getParameters()
63 {ConstructorType.STRING, file1, file2, StandardCharsets.ISO_8859_1}, in getParameters()
64 {ConstructorType.FILE, file1, file2, StandardCharsets.ISO_8859_1}, in getParameters()
80 void test(ConstructorType type, File file1, File file2, Charset charset) in test() argument
82 prepareFile(file1, TEST_STRING, charset); in test()
85 try (FileReader fr = getFileReader(type, file1, charset); in test() argument
/libcore/ojluni/src/test/java/util/Scanner/
DEncodingTest.java64 File file1 = Files.createTempFile( "ScannerCharsetTest1.txt", null).toFile(); in getParameters() local
68 {ConstructorType.FILE, file1, file2, csn, charset}, in getParameters()
69 {ConstructorType.PATH, file1, file2, csn, charset}, in getParameters()
70 {ConstructorType.INPUTSTREAM, file1, file2, csn, charset}, in getParameters()
71 {ConstructorType.READABLEBYTECHANNEL, file1, file2, csn, charset},}; in getParameters()
86 void test(ConstructorType type, File file1, File file2, String csn, Charset charset) in test() argument
88 prepareFile(file1, TEST_STRING); in test()
91 try (Scanner s1 = getScanner(type, file1.getPath(), csn, null); in test()
/libcore/ojluni/src/test/java/io/PrintStream/
DEncodingTest.java61 File file1 = File.createTempFile("PSCharsetTest1", "txt"); in getParameters() local
65 {ConstructorType.STRING, file1, file2, csn, charset}, in getParameters()
66 {ConstructorType.FILE, file1, file2, csn, charset}, in getParameters()
67 {ConstructorType.OUTPUTSTREAM, file1, file2, csn, charset} in getParameters()
82 public void test(ConstructorType type, File file1, File file2, String csn, Charset charset) in test() argument
84 createFile(getPrintStream(type, file1.getPath(), csn, null)); in test()
87 Assert.assertEquals(Files.readAllLines(Paths.get(file1.getPath()), charset), in test()
/libcore/ojluni/src/test/java/io/PrintWriter/
DEncodingTest.java62 File file1 = File.createTempFile("PSCharsetTest1", "txt"); in getParameters() local
66 {ConstructorType.STRING, file1, file2, csn, charset}, in getParameters()
67 {ConstructorType.FILE, file1, file2, csn, charset}, in getParameters()
68 {ConstructorType.OUTPUTSTREAM, file1, file2, csn, charset} in getParameters()
84 public void test(ConstructorType type, File file1, File file2, String csn, Charset charset) in test() argument
86 createFile(getWriter(type, file1.getPath(), csn, null)); in test()
89 Assert.assertEquals(Files.readAllLines(Paths.get(file1.getPath()), charset), in test()
/libcore/support/src/test/java/tests/support/
DSupport_DeleteOnExitTest.java12 File file1 = new File(args[0]); in main() local
15 file1.deleteOnExit(); in main()
/libcore/luni/src/test/java/libcore/java/nio/file/
DFiles2Test.java599 Path file1 = filesSetup.getPathInTestDir("root/dir1/dir2/dir3/file1"); in test_walkFileTree$Path$Set$int$FileVisitor_symbolicLinkFollow() local
603 Files.createFile(file1); in test_walkFileTree$Path$Set$int$FileVisitor_symbolicLinkFollow()
613 expectedDirMap.put(file1.getFileName(), VisitOption.VISIT_FILE); in test_walkFileTree$Path$Set$int$FileVisitor_symbolicLinkFollow()
643 Path file1 = filesSetup.getPathInTestDir("root/file1"); in test_walkFileTree$Path$FileVisitor() local
652 Files.createSymbolicLink(file1, filesSetup.getDataFilePath().toAbsolutePath()); in test_walkFileTree$Path$FileVisitor()
668 expectedDirMap.put(file1.getFileName(), VisitOption.VISIT_FILE); in test_walkFileTree$Path$FileVisitor()
685 Path file1 = filesSetup.getPathInTestDir("root/dir1/file1"); in test_walkFileTree_depthFirst() local
690 Files.createFile(file1); in test_walkFileTree_depthFirst()
699 assertEquals(file1.getFileName(), keyList.get(2)); in test_walkFileTree_depthFirst()
705 assertEquals(file1.getFileName(), keyList.get(4)); in test_walkFileTree_depthFirst()
[all …]
/libcore/ojluni/src/main/java/sun/net/www/protocol/jar/
DHandler.java65 String file1 = u1.getFile(); in sameFile()
67 int sep1 = file1.indexOf(separator); in sameFile()
74 String entry1 = file1.substring(sep1 + 2); in sameFile()
82 enclosedURL1 = new URL(file1.substring(0, sep1)); in sameFile()
/libcore/ojluni/src/main/java/sun/nio/fs/
DUnixFileSystemProvider.java320 UnixPath file1 = UnixPath.toUnixPath(obj1); in isSameFile() local
321 if (file1.equals(obj2)) in isSameFile()
330 file1.checkRead(); in isSameFile()
336 attrs1 = UnixFileAttributes.get(file1, true); in isSameFile()
338 x.rethrowAsIOException(file1); in isSameFile()
/libcore/luni/src/test/java/libcore/java/io/
DFileTest.java449 File file1 = new File("'\u0000'"); in test_toPath() local
451 file1.toPath(); in test_toPath()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
DFileTest.java218 File file1 = new File("/", "/dir1/file1"); in test_Constructor_String_String_112270() local
219 assertEquals("wrong result 1", ref1.getPath(), file1.getPath()); in test_Constructor_String_String_112270()
242 File file1 = new File(root, "/dir1/file1"); in test_Constructor_File_String_112270() local
243 assertEquals("wrong result 1", ref1.getPath(), file1.getPath()); in test_Constructor_File_String_112270()