@Test public void testDoGetLastModifiedTime() throws Exception { long modificationTime = 8988L; HadoopFileStatus hadoopFileStatus = mock( HadoopFileStatus.class ); when( hadoopFileSystem.getFileStatus( hadoopFileSystemPath ) ).thenReturn( hadoopFileStatus ); when( hadoopFileStatus.getModificationTime() ).thenReturn( modificationTime ); assertEquals( modificationTime, hdfsFileObject.doGetLastModifiedTime() ); }
@Override protected long doGetLastModifiedTime() throws Exception { return hdfs.getFileStatus( hdfs.getPath( getName().getPath() ) ).getModificationTime(); }
HDFSFileObject extends AbstractFileObject { @Override protected long doGetLastModifiedTime() throws Exception { return hdfs.getFileStatus( hdfs.getPath( getName().getPath() ) ).getModificationTime(); } }
HDFSFileObject extends AbstractFileObject { @Override protected long doGetLastModifiedTime() throws Exception { return hdfs.getFileStatus( hdfs.getPath( getName().getPath() ) ).getModificationTime(); } HDFSFileObject( final AbstractFileName name, final HDFSFileSystem fileSystem ); }
HDFSFileObject extends AbstractFileObject { @Override protected long doGetLastModifiedTime() throws Exception { return hdfs.getFileStatus( hdfs.getPath( getName().getPath() ) ).getModificationTime(); } HDFSFileObject( final AbstractFileName name, final HDFSFileSystem fileSystem ); @Override void doCreateFolder(); @Override void doDelete(); }
HDFSFileObject extends AbstractFileObject { @Override protected long doGetLastModifiedTime() throws Exception { return hdfs.getFileStatus( hdfs.getPath( getName().getPath() ) ).getModificationTime(); } HDFSFileObject( final AbstractFileName name, final HDFSFileSystem fileSystem ); @Override void doCreateFolder(); @Override void doDelete();  }