mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-10 23:45:44 +01:00
refactor store api
This commit is contained in:
@@ -37,13 +37,13 @@ package sonia.scm.repository;
|
||||
|
||||
|
||||
import sonia.scm.io.DefaultFileSystem;
|
||||
import sonia.scm.store.StoreFactory;
|
||||
|
||||
import static org.junit.Assert.*;
|
||||
|
||||
//~--- JDK imports ------------------------------------------------------------
|
||||
|
||||
import java.io.File;
|
||||
import sonia.scm.store.ConfigurationStoreFactory;
|
||||
|
||||
/**
|
||||
*
|
||||
@@ -83,7 +83,7 @@ public class HgRepositoryHandlerTest extends SimpleRepositoryHandlerTestBase
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
protected RepositoryHandler createRepositoryHandler(StoreFactory factory,
|
||||
protected RepositoryHandler createRepositoryHandler(ConfigurationStoreFactory factory,
|
||||
File directory)
|
||||
{
|
||||
HgRepositoryHandler handler = new HgRepositoryHandler(factory,
|
||||
@@ -98,3 +98,4 @@ public class HgRepositoryHandlerTest extends SimpleRepositoryHandlerTestBase
|
||||
return handler;
|
||||
}
|
||||
}
|
||||
//~--- non-JDK imports --------------------------------------------------------
|
||||
|
||||
@@ -39,7 +39,7 @@ import org.junit.Assume;
|
||||
|
||||
import sonia.scm.SCMContext;
|
||||
import sonia.scm.io.FileSystem;
|
||||
import sonia.scm.store.MemoryStoreFactory;
|
||||
import sonia.scm.store.InMemoryConfigurationStoreFactory;
|
||||
|
||||
import static org.mockito.Mockito.*;
|
||||
|
||||
@@ -105,7 +105,7 @@ public final class HgTestUtil
|
||||
FileSystem fileSystem = mock(FileSystem.class);
|
||||
|
||||
HgRepositoryHandler handler =
|
||||
new HgRepositoryHandler(new MemoryStoreFactory(), fileSystem,
|
||||
new HgRepositoryHandler(new InMemoryConfigurationStoreFactory(), fileSystem,
|
||||
new HgContextProvider());
|
||||
|
||||
handler.init(context);
|
||||
|
||||
Reference in New Issue
Block a user