Update core-java-modules/core-java-nio-2/src/test/java/com/baeldung/lock/FileLocksUnitTest.java
Co-Authored-By: KevinGilmore <kpg102@gmail.com>
This commit is contained in:
parent
80d241be46
commit
bc18fd907f
|
@ -46,7 +46,7 @@ class FileLocksUnitTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
void givenARandomAccessFile_whenGetSharedLock_lock() throws IOException {
|
void givenARandomAccessFile_whenGetSharedLock_thenLock() throws IOException {
|
||||||
FileLock lock = FileLocks.getReadLockFromRandomAccessFile(0, 10);
|
FileLock lock = FileLocks.getReadLockFromRandomAccessFile(0, 10);
|
||||||
assertNotNull(lock);
|
assertNotNull(lock);
|
||||||
assertTrue(lock.isShared());
|
assertTrue(lock.isShared());
|
||||||
|
|
Loading…
Reference in New Issue