Home
last modified time | relevance | path

Searched refs:tempFile (Results 1 – 8 of 8) sorted by relevance

/libcore/luni/src/test/java/libcore/java/util/zip/
DOldZipFileTest.java146 File tempFile = File.createTempFile("OldZipFileTest", "zip"); in setUp() local
147 tempFileName = tempFile.getAbsolutePath(); in setUp()
149 FileOutputStream fos = new FileOutputStream(tempFile); in setUp()
154 zfile = new ZipFile(tempFile); in setUp()
DZipFileTest.java98 File tempFile = createTemporaryZipFile(); in test_zipFileWith_cp1251_fileNames() local
101 FileOutputStream fos = new FileOutputStream(tempFile)) { in test_zipFileWith_cp1251_fileNames()
112 try (ZipFile zipFile = new ZipFile(tempFile, cp1251)) { in test_zipFileWith_cp1251_fileNames()
118 try (ZipFile zipFile = new ZipFile(tempFile.getAbsolutePath(), cp1251)) { in test_zipFileWith_cp1251_fileNames()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/zip/
DZipFileTest.java418 final File tempFile = File.createTempFile("smdc", "zip"); in test_sameNamesDifferentCase() local
422 FileOutputStream tempFileStream = new FileOutputStream(tempFile); in test_sameNamesDifferentCase()
436 ZipFile zipFile = new ZipFile(tempFile); in test_sameNamesDifferentCase()
441 tempFile.delete(); in test_sameNamesDifferentCase()
449 File tempFile = File.createTempFile("OldZipFileTest", "zip"); in setUp() local
450 tempFileName = tempFile.getAbsolutePath(); in setUp()
454 FileOutputStream fos = new FileOutputStream(tempFile); in setUp()
459 zfile = new ZipFile(tempFile); in setUp()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/
DFileLockTest.java58 File tempFile = File.createTempFile("testing", "tmp"); in setUp() local
59 tempFile.deleteOnExit(); in setUp()
60 RandomAccessFile randomAccessFile = new RandomAccessFile(tempFile, "rw"); in setUp()
/libcore/dom/src/test/java/org/w3c/domts/
DDOMTest.java163 File tempFile = File.createTempFile("domts", ".xml"); in createTempURI() local
169 Object uri = method.invoke(tempFile, (Class<?>) null); in createTempURI()
176 URL url = tempFile.toURL(); in createTempURI()
/libcore/luni/src/test/java/libcore/java/io/
DFileTest.java359 File tempFile = File.createTempFile("foo", ".bar"); in testJavaIoTmpdirMutable() local
360 assertTrue(tempFile.getAbsolutePath().contains(directoryName)); in testJavaIoTmpdirMutable()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/
DByteBufferTest.java2070 Path tempFile = Files.createTempFile("mmap", "test"); in testMappedByteBuffer_Put_ReadOnlyHeapByteBuffer() local
2071 Files.write(tempFile, data); in testMappedByteBuffer_Put_ReadOnlyHeapByteBuffer()
2075 try (RandomAccessFile tempRAF = new RandomAccessFile(tempFile.toFile(), "rw")) { in testMappedByteBuffer_Put_ReadOnlyHeapByteBuffer()
2084 Files.delete(tempFile); in testMappedByteBuffer_Put_ReadOnlyHeapByteBuffer()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DScannerTest.java385 File tempFile = File.createTempFile("harmony", "test"); in test_ConstructorLjava_nio_channels_ReadableByteChannel() local
386 tempFile.deleteOnExit(); in test_ConstructorLjava_nio_channels_ReadableByteChannel()
387 FileOutputStream os = new FileOutputStream(tempFile); in test_ConstructorLjava_nio_channels_ReadableByteChannel()
391 FileInputStream is = new FileInputStream(tempFile); in test_ConstructorLjava_nio_channels_ReadableByteChannel()