FileDocCategorySizeDatePackage
RandomAccessFileTest.javaAPI DocAndroid 1.5 API1937Wed May 06 22:41:04 BST 2009org.apache.harmony.luni.tests.java.io

RandomAccessFileTest

public class RandomAccessFileTest extends TestCase

Fields Summary
Constructors Summary
Methods Summary
public voidtest_ConstructorLjava_io_FileLjava_lang_String()

tests
java.io.RandomAccessFile#RandomAccessFile(java.io.File, java.lang.String)

        // Regression for HARMONY-50
        File f = File.createTempFile("xxx", "yyy");
        f.deleteOnExit();
        RandomAccessFile raf = new RandomAccessFile(f, "rws");
        raf.close();

        f = File.createTempFile("xxx", "yyy");
        f.deleteOnExit();
        raf = new RandomAccessFile(f, "rwd");
        raf.close();