Searched refs:mockFileSystemProvider (Results 1 – 3 of 3) sorted by relevance
/libcore/luni/src/test/java/libcore/java/nio/file/ |
D | FilesTest.java | 75 private FileSystemProvider mockFileSystemProvider; field in FilesTest 81 when(mockFileSystem.provider()).thenReturn(mockFileSystemProvider); in setUp() 88 when(mockFileSystemProvider.newInputStream(mockPath, READ)).thenReturn(is); in test_newInputStream() 92 verify(mockFileSystemProvider).newInputStream(mockPath, READ); in test_newInputStream() 100 when(mockFileSystemProvider.newOutputStream(mockPath, APPEND)).thenReturn(os); in test_newOutputStream() 104 verify(mockFileSystemProvider).newOutputStream(mockPath, APPEND); in test_newOutputStream() 114 when(mockFileSystemProvider.newByteChannel(mockPath, openOptions)).thenReturn(sfc); in test_newByteChannel() 118 verify(mockFileSystemProvider).newByteChannel(mockPath, openOptions); in test_newByteChannel() 175 verify(mockFileSystemProvider).createDirectory(mockPath, attr); in test_createDirectory_delegation() 366 verify(mockFileSystemProvider).createSymbolicLink(mockPath, mockPath2, mockFileAttribute); in test_createSymbolicLink() [all …]
|
D | Files2Test.java | 108 private FileSystemProvider mockFileSystemProvider; field in Files2Test 114 when(mockFileSystem.provider()).thenReturn(mockFileSystemProvider); in setUp() 121 verify(mockFileSystemProvider).move(mockPath, mockPath2, mockCopyOption); in test_move() 126 when(mockFileSystemProvider.readSymbolicLink(mockPath)).thenReturn(mockPath2); in test_readSymbolicLink() 128 verify(mockFileSystemProvider).readSymbolicLink(mockPath); in test_readSymbolicLink() 133 when(mockFileSystemProvider.isSameFile(mockPath, mockPath2)).thenReturn(true); in test_isSameFile() 134 when(mockFileSystemProvider.isSameFile(mockPath2, mockPath)).thenReturn(false); in test_isSameFile() 141 when(mockFileSystemProvider.getFileStore(mockPath)).thenThrow(new SecurityException()); in test_getFileStore() 151 when(mockFileSystemProvider.isHidden(mockPath)).thenReturn(true); in test_isHidden() 152 when(mockFileSystemProvider.isHidden(mockPath2)).thenReturn(false); in test_isHidden() [all …]
|
/libcore/luni/src/test/java/libcore/java/nio/channels/ |
D | FileChannelTest.java | 304 FileSystemProvider mockFileSystemProvider = mock(FileSystemProvider.class); in test_open_Path_Set_FileAttributes() local 315 when(mockFileSystem.provider()).thenReturn(mockFileSystemProvider); in test_open_Path_Set_FileAttributes() 316 when(mockFileSystemProvider.newFileChannel(mockPath, standardOpenOptions, in test_open_Path_Set_FileAttributes() 332 FileSystemProvider mockFileSystemProvider = mock(FileSystemProvider.class); in test_open_Path_OpenOptions() local 340 when(mockFileSystem.provider()).thenReturn(mockFileSystemProvider); in test_open_Path_OpenOptions() 341 when(mockFileSystemProvider.newFileChannel(mockPath, standardOpenOptions)) in test_open_Path_OpenOptions()
|