use of org.eclipse.che.api.vfs.ArchiverFactory in project che by eclipse.
the class LocalVirtualFileTest method setUp.
@Before
public void setUp() throws Exception {
File targetDir = new File(Thread.currentThread().getContextClassLoader().getResource(".").getPath()).getParentFile();
testDirectory = new File(targetDir, NameGenerator.generate("fs-", 4));
assertTrue(testDirectory.mkdir());
assertionHelper = new LocalVirtualFileAssertionHelper(testDirectory);
archiverFactory = mock(ArchiverFactory.class);
SearcherProvider searcherProvider = mock(SearcherProvider.class);
fileSystem = new LocalVirtualFileSystem(testDirectory, archiverFactory, searcherProvider, mock(AbstractVirtualFileSystemProvider.CloseCallback.class));
searcher = mock(Searcher.class);
when(searcherProvider.getSearcher(eq(fileSystem), eq(true))).thenReturn(searcher);
when(searcherProvider.getSearcher(eq(fileSystem))).thenReturn(searcher);
}
use of org.eclipse.che.api.vfs.ArchiverFactory in project che by eclipse.
the class MemoryVirtualFileTest method setUp.
@Before
public void setUp() throws Exception {
archiverFactory = mock(ArchiverFactory.class);
SearcherProvider searcherProvider = mock(SearcherProvider.class);
fileSystem = new MemoryVirtualFileSystem(archiverFactory, searcherProvider);
searcher = mock(Searcher.class);
when(searcherProvider.getSearcher(eq(fileSystem), eq(true))).thenReturn(searcher);
when(searcherProvider.getSearcher(eq(fileSystem))).thenReturn(searcher);
}
Aggregations