Searched refs:getDataFilePath (Results 1 – 7 of 7) sorted by relevance
/libcore/luni/src/test/java/libcore/java/nio/file/ |
D | DefaultFileSystemProvider2Test.java | 89 provider = filesSetup.getDataFilePath().getFileSystem().provider(); in setUp() 94 provider.move(filesSetup.getDataFilePath(), filesSetup.getTestPath()); in test_move() 96 assertFalse(Files.exists(filesSetup.getDataFilePath())); in test_move() 102 provider.move(filesSetup.getDataFilePath(), filesSetup.getTestPath()); in test_move() 109 writeToFile(filesSetup.getDataFilePath(), TEST_FILE_DATA_2); in test_move() 110 provider.move(filesSetup.getDataFilePath(), filesSetup.getTestPath(), REPLACE_EXISTING); in test_move() 116 provider.move(filesSetup.getTestPath(), filesSetup.getDataFilePath(), REPLACE_EXISTING); in test_move() 124 Files.setAttribute(filesSetup.getDataFilePath(), "basic:lastModifiedTime", fileTime); in test_move_CopyOption() 125 provider.move(filesSetup.getDataFilePath(), filesSetup.getTestPath()); in test_move_CopyOption() 133 provider.move(filesSetup.getDataFilePath(), filesSetup.getTestPath(), ATOMIC_MOVE); in test_move_CopyOption() [all …]
|
D | DefaultFileSystemProviderTest.java | 87 provider = filesSetup.getDataFilePath().getFileSystem().provider(); in setUp() 92 try (InputStream is = provider.newInputStream(filesSetup.getDataFilePath(), READ)) { in test_newInputStream() 100 try (InputStream is = provider.newInputStream(filesSetup.getDataFilePath(), WRITE)) { in test_newInputStream_openOption() 105 try (InputStream is = provider.newInputStream(filesSetup.getDataFilePath(), APPEND)) { in test_newInputStream_openOption() 110 try (InputStream is = provider.newInputStream(filesSetup.getDataFilePath(), in test_newInputStream_openOption() 117 try (InputStream is = provider.newInputStream(filesSetup.getDataFilePath(), DELETE_ON_CLOSE, in test_newInputStream_openOption() 125 try (InputStream is = provider.newInputStream(filesSetup.getDataFilePath(), READ); in test_newInputStream_twice() 127 InputStream is2 = provider.newInputStream(filesSetup.getDataFilePath(), READ)) { in test_newInputStream_twice() 140 try (InputStream is = provider.newInputStream(filesSetup.getDataFilePath(), in test_newInputStream_NPE() 168 try (OutputStream os = provider.newOutputStream(filesSetup.getDataFilePath(), APPEND)) { in test_newOutputStream_openOption_APPEND() [all …]
|
D | Files2Test.java | 206 Files.getAttribute(filesSetup.getDataFilePath(), "xyz"); in test_getAttribute_Exception() 216 Files.getAttribute(filesSetup.getDataFilePath(), null); in test_getAttribute_Exception() 241 Files.setPosixFilePermissions(filesSetup.getDataFilePath(), perm); in test_setPosixFilePermissions() 242 assertEquals(attr.value(), Files.getPosixFilePermissions(filesSetup.getDataFilePath())); in test_setPosixFilePermissions() 255 Files.setPosixFilePermissions(filesSetup.getDataFilePath(), null); in test_setPosixFilePermissions_NPE() 265 assertEquals(owner, Files.getOwner(filesSetup.getDataFilePath()).getName()); in test_getOwner() 279 assertFalse(Files.isSymbolicLink(filesSetup.getDataFilePath())); in test_isSymbolicLink() 298 assertFalse(Files.isDirectory(filesSetup.getDataFilePath())); in test_isDirectory() 320 assertTrue(Files.isRegularFile(filesSetup.getDataFilePath())); in test_isRegularFile() 338 filesSetup.getDataFilePath().toAbsolutePath()); in test_isRegularFile() [all …]
|
D | FileSystemsTest.java | 167 FileSystem fs = FileSystems.newFileSystem(filesSetup.getDataFilePath(), in test_newFileSystem$Path$ClassLoader_customClassLoader() 173 assertEquals(filesSetup.getDataFilePath(), pathValue); in test_newFileSystem$Path$ClassLoader_customClassLoader()
|
D | FilesTest.java | 110 try (FileChannel sfc = FileChannel.open(filesSetup.getDataFilePath())) { in test_newByteChannel() 135 Files.createFile(filesSetup.getDataFilePath()); in test_createFile() 165 Files.createFile(filesSetup.getDataFilePath(), attr); in test_createFile$String$Attr()
|
D | FilesSetup.java | 95 Path getDataFilePath() { in getDataFilePath() method in FilesSetup
|
D | DefaultSecureDirectoryStreamTest.java | 256 try (SeekableByteChannel sbc = ds_path_root.newByteChannel(filesSetup.getDataFilePath(), in test_newByteChannel_NPE()
|