question: public void test_transferTo_couldDelete ( ) throws Exception { writeDataToFile ( fileOfReadOnlyFileChannel ) ; writeDataToFile ( fileOfWriteOnlyFileChannel ) ; readOnlyFileChannel . transferTo ( 0 , 2 , writeOnlyFileChannel ) ; readOnlyFileChannel . close ( ) ; writeOnlyFileChannel . close ( ) ; boolean rDel = fileOfReadOnlyFileChannel . delete ( ) ; boolean wDel = fileOfWriteOnlyFileChannel . delete ( ) ; assertTrue ( "File " + readOnlyFileChannel + " exists" , rDel ) ; assertTrue ( "File " + writeOnlyFileChannel + " exists" , wDel ) ; }
target:  Regression test for Harmony-3324 Make sure we could delete the file after we called transferTo() method.