mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-10 07:25:44 +01:00
Remove PathBasedRepositoryDAO
The computation of the file path for the repository is done by RepositoryLocationResolver.
This commit is contained in:
@@ -102,13 +102,12 @@ public final class HgTestUtil
|
||||
|
||||
context.setBaseDirectory(directory);
|
||||
|
||||
PathBasedRepositoryDAO repoDao = mock(PathBasedRepositoryDAO.class);
|
||||
RepositoryDAO repoDao = mock(RepositoryDAO.class);
|
||||
|
||||
RepositoryLocationResolver repositoryLocationResolver = new TempDirRepositoryLocationResolver(directory);
|
||||
HgRepositoryHandler handler =
|
||||
new HgRepositoryHandler(new InMemoryConfigurationStoreFactory(), new HgContextProvider(), repositoryLocationResolver, null, null);
|
||||
Path repoDir = directory.toPath();
|
||||
when(repoDao.getPath(any())).thenReturn(repoDir);
|
||||
handler.init(context);
|
||||
|
||||
return handler;
|
||||
|
||||
Reference in New Issue
Block a user