FileDocCategorySizeDatePackage
FileTest.javaAPI DocAndroid 1.5 API1122Wed May 06 22:42:02 BST 2009android.core

FileTest

public class FileTest extends TestCase
Checks creation and deletion of a file.

Fields Summary
Constructors Summary
Methods Summary
public voidtestFile()


        File file = File.createTempFile(String.valueOf(System.currentTimeMillis()), null, null);

        assertTrue(file.exists());
        assertTrue(file.delete());
        assertFalse(file.exists());