Home
last modified time | relevance | path

Searched refs:readWriteChannel (Results 1 – 2 of 2) sorted by relevance

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/
DFileLockTest.java34 private FileChannel readWriteChannel; field in FileLockTest
61 readWriteChannel = randomAccessFile.getChannel(); in setUp()
62 mockLock = new MockFileLock(readWriteChannel, 10, 100, false); in setUp()
66 if (readWriteChannel != null) { in tearDown()
67 readWriteChannel.close(); in tearDown()
80 new MockFileLock(readWriteChannel, -1, 0, false); in test_Constructor_Ljava_nio_channels_FileChannelJJZ()
86 new MockFileLock(readWriteChannel, 0, -1, false); in test_Constructor_Ljava_nio_channels_FileChannelJJZ()
93 new MockFileLock(readWriteChannel, Long.MAX_VALUE, 1, false); in test_Constructor_Ljava_nio_channels_FileChannelJJZ()
104 assertSame(readWriteChannel, mockLock.channel()); in test_channel()
113 FileLock fileLock1 = new MockFileLock(readWriteChannel, 20, 100, true); in test_position()
[all …]
DFileChannelLockingTest.java42 private FileChannel readWriteChannel; field in FileChannelLockingTest
71 readWriteChannel = randomAccessFile.getChannel(); in setUp()
81 if (readWriteChannel != null) { in tearDown()
82 readWriteChannel.close(); in tearDown()
106 FileLock flock = readWriteChannel.lock(); in test_lockReadWrite()
127 readWriteChannel.lock(-1, 10, false); in test_illegalLockParameters()
134 FileLock flock1 = readWriteChannel.lock(22, 110, true); in test_illegalLockParameters()
138 readWriteChannel.lock(75, 210, true); in test_illegalLockParameters()
147 FileLock flock1 = readWriteChannel.lock(0, 10, false); in test_lockLLZ()
150 FileLock flock2 = readWriteChannel.lock(22, 100, true); in test_lockLLZ()