@@ -0,0 +1,1436 @@
+/* Copyright 2006 The Apache Software Foundation or its licensors, as applicable%0D%0A * %0D%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0D%0A * you may not use this file except in compliance with the License.%0D%0A * You may obtain a copy of the License at%0D%0A * %0D%0A *     http://www.apache.org/licenses/LICENSE-2.0%0D%0A * %0D%0A * Unless required by applicable law or agreed to in writing, software%0D%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0D%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0D%0A * See the License for the specific language governing permissions and%0D%0A * limitations under the License.%0D%0A */%0D%0A%0D%0Apackage org.apache.harmony.tests.java.io;%0D%0A%0D%0Aimport java.io.File;%0D%0Aimport java.io.IOException;%0D%0Aimport java.io.RandomAccessFile;%0D%0A%0D%0Aimport junit.framework.TestCase;%0D%0A  %0D%0Apublic class RandomAccessFileTest extends TestCase %7B%0D%0A%0D%0A%09/**%0D%0A%09 * @tests java.io.RandomAccessFile#RandomAccessFile(java.io.File, java.lang.String)%0D%0A%09 */%0D%0A%09public void test_ConstructorLjava_io_FileLjava_lang_String() throws IOException %7B%0D%0A%09%09// Regression for HARMONY-50%0D%0A        File f = File.createTempFile(%22xxx%22, %22yyy%22);%0D%0A        f.deleteOnExit();%0D%0A        RandomAccessFile raf = new RandomAccessFile(f, %22rws%22);%0D%0A        raf.close();%0D%0A%0D%0A        f = File.createTempFile(%22xxx%22, %22yyy%22);%0D%0A        f.deleteOnExit();%0D%0A        raf = new RandomAccessFile(f, %22rwd%22);%0D%0A        raf.close();            %0D%0A    %7D%0D%0A%7D%0D%0A

Test case for HARMONY-50 (rightly part of revision 389232)