Searched refs:tmpFilePath (Results 1 – 2 of 2) sorted by relevance
/libcore/luni/src/test/java/libcore/java/nio/file/ |
D | Files2Test.java | 1726 Path tmpFilePath = Files.createTempFile(filesSetup.getTestDirPath(), tmpFilePrefix, in test_createTempFile$Path$String$String$FileAttributes() local 1729 assertTrue(tmpFilePath.getFileName().toString().startsWith(tmpFilePrefix)); in test_createTempFile$Path$String$String$FileAttributes() 1730 assertTrue(tmpFilePath.getFileName().toString().endsWith(tmpFileSuffix)); in test_createTempFile$Path$String$String$FileAttributes() 1731 assertEquals(filesSetup.getTestDirPath(), tmpFilePath.getParent()); in test_createTempFile$Path$String$String$FileAttributes() 1732 assertTrue(Files.isRegularFile(tmpFilePath)); in test_createTempFile$Path$String$String$FileAttributes() 1733 assertEquals(attr.value(), Files.getAttribute(tmpFilePath, attr.name())); in test_createTempFile$Path$String$String$FileAttributes() 1737 tmpFilePath = Files.createTempFile(filesSetup.getTestDirPath(), null, in test_createTempFile$Path$String$String$FileAttributes() 1739 assertTrue(tmpFilePath.getFileName().toString().endsWith(tmpFileSuffix)); in test_createTempFile$Path$String$String$FileAttributes() 1740 assertEquals(filesSetup.getTestDirPath(), tmpFilePath.getParent()); in test_createTempFile$Path$String$String$FileAttributes() 1741 assertTrue(Files.isRegularFile(tmpFilePath)); in test_createTempFile$Path$String$String$FileAttributes() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | ScannerTest.java | 130 Path tmpFilePath = Files.createTempFile("TestFileForScanner", ".tmp"); in test_ConstructorLjava_nio_file_Path() local 132 try (OutputStream os = Files.newOutputStream(tmpFilePath)) { in test_ConstructorLjava_nio_file_Path() 135 try (Scanner s = new Scanner(tmpFilePath)){ in test_ConstructorLjava_nio_file_Path() 229 Path tmpFilePath = Files.createTempFile("TestFileForScanner", ".tmp"); in test_ConstructorLjava_nio_file_PathLjava_lang_String() local 231 try (OutputStream os = Files.newOutputStream(tmpFilePath)) { in test_ConstructorLjava_nio_file_PathLjava_lang_String() 235 try (Scanner s = new Scanner(tmpFilePath, Charset.defaultCharset().name())){ in test_ConstructorLjava_nio_file_PathLjava_lang_String() 240 try (Scanner s = new Scanner(tmpFilePath, "US-ASCII")){ in test_ConstructorLjava_nio_file_PathLjava_lang_String()
|