HarFileSystem extends FileSystem { @Override public FileChecksum getFileChecksum(Path f, long length) { return null; } HarFileSystem();  HarFileSystem(FileSystem fs); @Override String getScheme(); @Override void initialize(URI name, Configuration conf); @Override Configuration getConf(); int getHarVersion(); @Override Path getWorkingDirectory(); @Override Path getInitialWorkingDirectory(); @Override FsStatus getStatus(Path p); @Override URI getUri(); @Override Path resolvePath(Path p); @Override Path makeQualified(Path path); @Override BlockLocation[] getFileBlockLocations(FileStatus file, long start,
                                               long len); static int getHarHash(Path p); @Override FileStatus getFileStatus(Path f); @Override FileChecksum getFileChecksum(Path f, long length); @Override FSDataInputStream open(Path f, int bufferSize); @Override FSDataInputStream open(PathHandle fd, int bufferSize); @Override FileSystem[] getChildFileSystems(); @Override FSDataOutputStream create(Path f, FsPermission permission,
      boolean overwrite, int bufferSize, short replication, long blockSize,
      Progressable progress); @Override FSDataOutputStream createNonRecursive(Path f, boolean overwrite,
      int bufferSize, short replication, long blockSize, Progressable progress); @Override FSDataOutputStream append(Path f, int bufferSize, Progressable progress); @Override void close(); @Override boolean setReplication(Path src, short replication); @Override boolean rename(Path src, Path dst); @Override FSDataOutputStream append(Path f); @Override boolean truncate(Path f, long newLength); @Override boolean delete(Path f, boolean recursive); @Override FileStatus[] listStatus(Path f); @Override Path getHomeDirectory(); @Override void setWorkingDirectory(Path newDir); @Override boolean mkdirs(Path f, FsPermission permission); @Override void copyFromLocalFile(boolean delSrc, boolean overwrite,
      Path src, Path dst); @Override void copyFromLocalFile(boolean delSrc, boolean overwrite,
      Path[] srcs, Path dst); @Override void copyToLocalFile(boolean delSrc, Path src, Path dst); @Override Path startLocalOutput(Path fsOutputFile, Path tmpLocalFile); @Override void completeLocalOutput(Path fsOutputFile, Path tmpLocalFile); @Override void setOwner(Path p, String username, String groupname); @Override void setTimes(Path p, long mtime, long atime); @Override void setPermission(Path p, FsPermission permission); @Override boolean hasPathCapability(final Path path, final String capability); @SuppressWarnings("deprecation") @Override FsServerDefaults getServerDefaults(); @Override FsServerDefaults getServerDefaults(Path f); @Override long getUsed(); @Override long getUsed(Path path); @SuppressWarnings("deprecation") @Override long getDefaultBlockSize(); @SuppressWarnings("deprecation") @Override long getDefaultBlockSize(Path f); @SuppressWarnings("deprecation") @Override short getDefaultReplication(); @Override short getDefaultReplication(Path f); @Override FSDataOutputStreamBuilder createFile(Path path); @Override FSDataOutputStreamBuilder appendFile(Path path); static final String METADATA_CACHE_ENTRIES_KEY; static final int METADATA_CACHE_ENTRIES_DEFAULT; static final int VERSION; }
@Test public void testFileChecksum() throws Exception { final Path p = new Path("har: try (HarFileSystem harfs = new HarFileSystem()) { assertThat(harfs.getFileChecksum(p)).isNull(); } }