mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-12 16:35:45 +01:00
added unit tests for repository archive
This commit is contained in:
@@ -120,6 +120,21 @@ public class DefaultRepositoryManagerTest extends RepositoryManagerTestBase
|
||||
*/
|
||||
@Override
|
||||
protected DefaultRepositoryManager createManager()
|
||||
{
|
||||
return createRepositoryManager(false);
|
||||
}
|
||||
|
||||
/**
|
||||
* Method description
|
||||
*
|
||||
*
|
||||
* @param archiveEnabled
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
protected DefaultRepositoryManager createRepositoryManager(
|
||||
boolean archiveEnabled)
|
||||
{
|
||||
Set<RepositoryHandler> handlerSet = new HashSet<RepositoryHandler>();
|
||||
StoreFactory factory = new JAXBStoreFactory();
|
||||
@@ -155,6 +170,8 @@ public class DefaultRepositoryManagerTest extends RepositoryManagerTestBase
|
||||
|
||||
ScmConfiguration configuration = new ScmConfiguration();
|
||||
|
||||
configuration.setEnableRepositoryArchive(archiveEnabled);
|
||||
|
||||
return new DefaultRepositoryManager(configuration, contextProvider,
|
||||
new DefaultKeyGenerator(), repositoryDAO, handlerSet, listenerProvider,
|
||||
hookProvider, createEmptyPreProcessorUtil());
|
||||
|
||||
Reference in New Issue
Block a user