Searched refs:writeOnlyFileChannel (Results 1 – 2 of 2) sorted by relevance
63 private FileChannel writeOnlyFileChannel; field in OldFileChannelTest92 writeOnlyFileChannel = new FileOutputStream(fileOfWriteOnlyFileChannel) in setUp()106 if (null != writeOnlyFileChannel) { in tearDown()108 writeOnlyFileChannel.close(); in tearDown()149 writeOnlyFileChannel.write(writeBuffer); in test_forceZ()150 writeOnlyFileChannel.force(true); in test_forceZ()157 writeOnlyFileChannel.write(writeBuffer); in test_forceZ()158 writeOnlyFileChannel.force(false); in test_forceZ()209 writeOnlyFileChannel.tryLock(0, -1, false); in test_tryLockJJZ_IllegalArgument()216 writeOnlyFileChannel.tryLock(-1, 0, false); in test_tryLockJJZ_IllegalArgument()[all …]
83 private FileChannel writeOnlyFileChannel; field in FileChannelTest132 writeOnlyFileChannel = new FileOutputStream(fileOfWriteOnlyFileChannel) in setUp()143 IoUtils.closeQuietly(writeOnlyFileChannel); in tearDown()182 writeOnlyFileChannel.write(writeBuffer); in test_forceJ()183 writeOnlyFileChannel.force(true); in test_forceJ()195 writeOnlyFileChannel.close(); in test_forceJ_closed()197 writeOnlyFileChannel.force(true); in test_forceJ_closed()203 writeOnlyFileChannel.force(false); in test_forceJ_closed()223 assertEquals(0, writeOnlyFileChannel.position()); in test_position_Init()282 writeOnlyFileChannel.write(writeBuffer); in test_position_WriteOnly()[all …]