Searched refs:fileBackend (Results 1 – 4 of 4) sorted by relevance
75 ImmutableList.of(fileBackend, cnsBackend), in initStorage()105 return fileBackend; in emptyBackendName_shouldBeSilentlySkipped()130 verify(fileBackend).deleteFile(file1Uri); in deleteFile_shouldInvokeBackend()136 verify(fileBackend).deleteDirectory(file1Uri); in deleteDir_shouldInvokeBackend()142 when(fileBackend.exists(dir1Uri)).thenReturn(true); in deleteRecursively_shouldRecurse()143 when(fileBackend.isDirectory(dir1Uri)).thenReturn(true); in deleteRecursively_shouldRecurse()144 when(fileBackend.exists(dir2Uri)).thenReturn(true); in deleteRecursively_shouldRecurse()145 when(fileBackend.isDirectory(dir2Uri)).thenReturn(true); in deleteRecursively_shouldRecurse()146 when(fileBackend.exists(file1Uri)).thenReturn(true); in deleteRecursively_shouldRecurse()147 when(fileBackend.exists(file2Uri)).thenReturn(true); in deleteRecursively_shouldRecurse()[all …]
52 @Mock protected Backend fileBackend; field in UriComputingBehaviorTest56 when(fileBackend.name()).thenReturn("file"); in initStorage()59 ImmutableList.of(fileBackend), in initStorage()72 when(fileBackend.openForRead(any())).thenReturn(EMPTY_INPUT_STREAM); in getComputedUri_read_shouldRetainUnencodedUriAndFragment()85 when(fileBackend.openForRead(any())).thenReturn(EMPTY_INPUT_STREAM); in getComputedUri_read_withNoTransform_returnsSameUri()106 when(fileBackend.openForWrite(any())).thenReturn(outputStream); in getComputedUri_write_shouldRetainUnencodedUriAndFragment()120 when(fileBackend.openForWrite(any())).thenReturn(outputStream); in getComputedUri_write_withNoTransform_returnsSameUri()
75 @Mock protected Backend fileBackend; field in FileStorageTestBase119 when(fileBackend.name()).thenReturn("file"); in initMocksAndCreateFileStorage()120 when(fileBackend.openForRead(any())).thenReturn(EMPTY_INPUT); in initMocksAndCreateFileStorage()121 when(fileBackend.openForWrite(any())).thenReturn(NULL_OUTPUT); in initMocksAndCreateFileStorage()122 when(fileBackend.openForAppend(any())).thenReturn(NULL_OUTPUT); in initMocksAndCreateFileStorage()133 when(fileBackend.openForNativeRead(any())) in initMocksAndCreateFileStorage()
53 @Mock protected Backend fileBackend; field in NativeReadOpenerTest60 when(fileBackend.name()).thenReturn("file"); in initStorage()62 when(fileBackend.openForNativeRead(any())) in initStorage()67 ImmutableList.of(fileBackend), in initStorage()