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:
psoares 2020-02-14 23:11:34 -05:00 committed by GitHub
parent 37d822bc12
commit 81d097732d
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ class FileLocksUnitTest {
}
@Test
void givenARandomAccessFileWithReadWriteAccess_whenGetWriteLock_lock() throws IOException {
void givenARandomAccessFileWithReadWriteAccess_whenGetWriteLock_thenLock() throws IOException {
FileLock lock = FileLocks.getExclusiveLockFromRandomAccessFile(0, 10);
assertNotNull(lock);
assertFalse(lock.isShared());