Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
import org.junit.rules.TestName;
import org.junit.runner.RunWith;
import org.junit.runners.JUnit4;
import org.mockito.Mockito;

/** Unit tests for {@code Files.isDirectory()}. */
@RunWith(JUnit4.class)
Expand Down Expand Up @@ -69,7 +70,7 @@ public void testIsDirectoryNoUserProject() {
CloudStorageFileSystem.forBucket("bucket", CloudStorageConfiguration.DEFAULT, mockOptions);
when(mockStorage.get(BlobId.of("bucket", "test", null)))
.thenThrow(new IllegalArgumentException());
Page<Blob> pages = mock(Page.class);
Page<Blob> pages = Mockito.mock(Page.class, Mockito.withSettings().withoutAnnotations());
Blob blob = mock(Blob.class);
when(blob.getBlobId()).thenReturn(BlobId.of("bucket", "test/hello.txt"));
when(pages.getValues()).thenReturn(Lists.newArrayList(blob));
Expand All @@ -91,7 +92,7 @@ public void testIsDirectoryWithUserProject() {
mockOptions);
when(mockStorage.get(BlobId.of("bucket", "test", null)))
.thenThrow(new IllegalArgumentException());
Page<Blob> pages = mock(Page.class);
Page<Blob> pages = Mockito.mock(Page.class, Mockito.withSettings().withoutAnnotations());
Blob blob = mock(Blob.class);
when(blob.getBlobId()).thenReturn(BlobId.of("bucket", "test/hello.txt"));
when(pages.getValues()).thenReturn(Lists.newArrayList(blob));
Expand Down
Loading