Home
last modified time | relevance | path

Searched refs:mockPath2 (Results 1 – 2 of 2) sorted by relevance

/libcore/luni/src/test/java/libcore/java/nio/file/
DFilesTest.java71 private Path mockPath2; field in FilesTest
80 when(mockPath2.getFileSystem()).thenReturn(mockFileSystem); in setUp()
365 assertEquals(mockPath, Files.createSymbolicLink(mockPath, mockPath2, mockFileAttribute)); in test_createSymbolicLink()
366 verify(mockFileSystemProvider).createSymbolicLink(mockPath, mockPath2, mockFileAttribute); in test_createSymbolicLink()
385 Files.copy(mockPath, mockPath2, copyOption); in test_copy()
386 verify(mockFileSystemProvider).copy(mockPath, mockPath2, copyOption); in test_copy()
DFiles2Test.java104 private Path mockPath2; field in Files2Test
113 when(mockPath2.getFileSystem()).thenReturn(mockFileSystem); in setUp()
120 assertEquals(mockPath2, Files.move(mockPath, mockPath2, mockCopyOption)); in test_move()
121 verify(mockFileSystemProvider).move(mockPath, mockPath2, mockCopyOption); in test_move()
126 when(mockFileSystemProvider.readSymbolicLink(mockPath)).thenReturn(mockPath2); in test_readSymbolicLink()
127 assertEquals(mockPath2, Files.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()
135 assertTrue(Files.isSameFile(mockPath, mockPath2)); in test_isSameFile()
136 assertFalse(Files.isSameFile(mockPath2, mockPath)); in test_isSameFile()
[all …]