@Test void canGetTaskExecutor(@TempDir final Path tmpDir) throws IOException, LockException { Assertions .assertThat( this.fileLockFactory.getLock(Files.createFile(tmpDir.resolve(UUID.randomUUID().toString())).toFile()) ) .isInstanceOf(FileLock.class); }
public CloseableLock getLock(final File file) throws LockException { return new FileLock(file); }
FileLockFactory { public CloseableLock getLock(final File file) throws LockException { return new FileLock(file); } }
FileLockFactory { public CloseableLock getLock(final File file) throws LockException { return new FileLock(file); }  }
FileLockFactory { public CloseableLock getLock(final File file) throws LockException { return new FileLock(file); }  CloseableLock getLock(final File file); }
FileLockFactory { public CloseableLock getLock(final File file) throws LockException { return new FileLock(file); }  CloseableLock getLock(final File file);  }