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:28 -05:00
committed by GitHub
parent d03b119259
commit 9bee6c4320

View File

@@ -15,7 +15,7 @@ import org.junit.jupiter.api.Test;
class FileLocksUnitTest {
@Test
void givenAnInputStream_whenGetWriteLock_throwNonWritableChannelException() {
void givenAnInputStream_whenGetWriteLock_thenThrowNonWritableChannelException() {
assertThrows(NonWritableChannelException.class, () -> FileLocks.getExclusiveLockFromInputStream());
}