Skip to content

Commit

Permalink
#195 Fix failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
srikanth-lingala committed May 27, 2020
1 parent 5a3233b commit 089bd6e
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -148,14 +148,14 @@ private void verifyAllPermissionSet(Set<PosixFilePermission> permissions) {
);
}

private PosixFileAttributeView mockPosixFileAttributeView(Path path, boolean isDirectory)
throws IOException {
private PosixFileAttributeView mockPosixFileAttributeView(Path path, boolean isDirectory) throws IOException {
FileSystemProvider fileSystemProvider = mock(FileSystemProvider.class);
FileSystem fileSystem = mock(FileSystem.class);
PosixFileAttributeView posixFileAttributeView = mock(PosixFileAttributeView.class);

when(path.getFileSystem()).thenReturn(fileSystem);
when(fileSystemProvider.getFileAttributeView(path, PosixFileAttributeView.class))
when(fileSystemProvider.getFileAttributeView(path, PosixFileAttributeView.class)).thenReturn(posixFileAttributeView);
when(fileSystemProvider.getFileAttributeView(path, PosixFileAttributeView.class, LinkOption.NOFOLLOW_LINKS))
.thenReturn(posixFileAttributeView);
when(path.getFileSystem().provider()).thenReturn(fileSystemProvider);

Expand Down

0 comments on commit 089bd6e

Please sign in to comment.