Searched refs:getTestPath (Results 1 – 7 of 7) sorted by relevance
/libcore/luni/src/test/java/libcore/java/nio/file/ |
D | DefaultFileSystemProviderTest.java | 148 try (OutputStream os = provider.newOutputStream(filesSetup.getTestPath())) { in test_newOutputStream() 152 try (InputStream is = provider.newInputStream(filesSetup.getTestPath())) { in test_newOutputStream() 159 try (OutputStream os = provider.newOutputStream(filesSetup.getTestPath(), READ)) { in test_newOutputStream_openOption_READ() 177 try (OutputStream os = provider.newOutputStream(filesSetup.getTestPath(), APPEND)) { in test_newOutputStream_openOption_APPEND() 180 assertTrue(expected.getMessage().contains(filesSetup.getTestPath().toString())); in test_newOutputStream_openOption_APPEND() 197 try (OutputStream os = provider.newOutputStream(filesSetup.getTestPath(), in test_newOutputStream_openOption_TRUNCATE() 201 assertTrue(expected.getMessage().contains(filesSetup.getTestPath().toString())); in test_newOutputStream_openOption_TRUNCATE() 219 try (OutputStream os = provider.newOutputStream(filesSetup.getTestPath(), WRITE)) { in test_newOutputStream_openOption_WRITE() 222 assertTrue(expected.getMessage().contains(filesSetup.getTestPath().toString())); in test_newOutputStream_openOption_WRITE() 240 try (OutputStream os = provider.newOutputStream(filesSetup.getTestPath(), CREATE)) { in test_newOutputStream_openOption_CREATE() [all …]
|
D | DefaultFileSystemProvider2Test.java | 94 provider.move(filesSetup.getDataFilePath(), filesSetup.getTestPath()); in test_move() 95 assertEquals(TEST_FILE_DATA, readFromFile(filesSetup.getTestPath())); in test_move() 99 Files.createFile(filesSetup.getTestPath()); in test_move() 102 provider.move(filesSetup.getDataFilePath(), filesSetup.getTestPath()); in test_move() 108 Files.createFile(filesSetup.getTestPath()); in test_move() 110 provider.move(filesSetup.getDataFilePath(), filesSetup.getTestPath(), REPLACE_EXISTING); in test_move() 111 assertEquals(TEST_FILE_DATA_2, readFromFile(filesSetup.getTestPath())); in test_move() 116 provider.move(filesSetup.getTestPath(), filesSetup.getDataFilePath(), REPLACE_EXISTING); in test_move() 125 provider.move(filesSetup.getDataFilePath(), filesSetup.getTestPath()); in test_move_CopyOption() 127 ((FileTime) Files.getAttribute(filesSetup.getTestPath(), in test_move_CopyOption() [all …]
|
D | Files2Test.java | 197 Files.getAttribute(filesSetup.getTestPath(), "basic:lastModifiedTime"); in test_getAttribute() 225 Files.createFile(filesSetup.getTestPath(), attr); in test_getPosixFilePermissions() 226 assertEquals(attr.value(), Files.getPosixFilePermissions(filesSetup.getTestPath())); in test_getPosixFilePermissions() 278 assertFalse(Files.isSymbolicLink(filesSetup.getTestPath())); in test_isSymbolicLink() 285 assertTrue(Files.isSymbolicLink(filesSetup.getTestPath())); in test_isSymbolicLink() 300 assertFalse(Files.isDirectory(filesSetup.getTestPath())); in test_isDirectory() 322 assertFalse(Files.isRegularFile(filesSetup.getTestPath())); in test_isRegularFile() 331 Files.createSymbolicLink(filesSetup.getTestPath(), in test_isRegularFile() 332 filesSetup.getTestPath().toAbsolutePath()); in test_isRegularFile() 333 assertFalse(Files.isRegularFile(filesSetup.getTestPath())); in test_isRegularFile() [all …]
|
D | LinuxPathTest.java | 163 filesSetup.getTestPath().startsWith((String) null); in test_startsWith$String_NPE() 176 filesSetup.getTestPath().startsWith((Path) null); in test_startsWith$Path_NPE() 190 filesSetup.getTestPath().endsWith((Path)null); in test_endsWith$Path_NPE() 204 filesSetup.getTestPath().endsWith((String)null); in test_endsWith$String_NPE() 328 Files.createFile(filesSetup.getTestPath()); in test_toRealPath() 329 Path realPath = filesSetup.getTestPath().toRealPath(); in test_toRealPath() 330 assertTrue(Files.isSameFile(filesSetup.getTestPath().toAbsolutePath(), realPath)); in test_toRealPath() 345 Files.createSymbolicLink(symLink, filesSetup.getTestPath().toAbsolutePath()); in test_toRealPath() 530 filesSetup.getTestPath().compareTo(null); in test_compareTo_NPE() 546 filesSetup.getTestPath().equals(null); in test_equals_NPE()
|
D | FilesTest.java | 124 assertFalse(Files.exists(filesSetup.getTestPath())); in test_createFile() 125 Files.createFile(filesSetup.getTestPath()); in test_createFile() 126 assertTrue(Files.exists(filesSetup.getTestPath())); in test_createFile() 152 Files.createFile(filesSetup.getTestPath(), attr); in test_createFile$String$Attr() 153 assertEquals(attr.value(), Files.getAttribute(filesSetup.getTestPath(), attr.name())); in test_createFile$String$Attr()
|
D | DefaultSecureDirectoryStreamTest.java | 209 try (SeekableByteChannel sbc = ds_path_root.newByteChannel(filesSetup.getTestPath(), in test_newByteChannel() 213 assertTrue(expected.getMessage().contains(filesSetup.getTestPath().toString())); in test_newByteChannel() 280 ds_path_root.deleteFile(filesSetup.getTestPath()); in test_deleteFile() 315 ds_path_root.deleteDirectory(filesSetup.getTestPath()); in test_deleteDirectory()
|
D | FilesSetup.java | 90 Path getTestPath() { in getTestPath() method in FilesSetup
|