use of alluxio.exception.FileIncompleteException in project alluxio by Alluxio.
the class AlluxioJniFuseFileSystemTest method incompleteFileCannotOpen.
@Test
public void incompleteFileCannotOpen() throws Exception {
AlluxioURI expectedPath = BASE_EXPECTED_URI.join("/foo/bar");
FileInfo fi = setUpOpenMock(expectedPath);
fi.setCompleted(false);
when(mFileSystem.openFile(expectedPath)).thenThrow(new FileIncompleteException(expectedPath));
assertEquals(-ErrorCodes.EFAULT(), mFuseFs.open("/foo/bar", mFileInfo));
}
Aggregations