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
81d097732d
commit
c6489551cf
@ -34,7 +34,7 @@ class FileLocksUnitTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
void givenAFileOutputStream_whenGetSharedLock_throwNonReadableChannelException() {
|
void givenAFileOutputStream_whenGetSharedLock_thenThrowNonReadableChannelException() {
|
||||||
assertThrows(NonReadableChannelException.class, FileLocks::getReadLockFromOutputStream);
|
assertThrows(NonReadableChannelException.class, FileLocks::getReadLockFromOutputStream);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user