mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-07 18:25:23 +00:00
Possible build/test fix
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14240 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
parent
c49ebae2d7
commit
a687ac1b1b
@ -30,10 +30,12 @@ import java.util.ArrayList;
|
|||||||
import java.util.Collection;
|
import java.util.Collection;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
|
import java.util.List;
|
||||||
import java.util.Locale;
|
import java.util.Locale;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
import org.alfresco.model.ContentModel;
|
import org.alfresco.model.ContentModel;
|
||||||
|
import org.alfresco.repo.dictionary.DictionaryBootstrap;
|
||||||
import org.alfresco.repo.dictionary.DictionaryDAO;
|
import org.alfresco.repo.dictionary.DictionaryDAO;
|
||||||
import org.alfresco.repo.dictionary.M2Model;
|
import org.alfresco.repo.dictionary.M2Model;
|
||||||
import org.alfresco.repo.node.archive.NodeArchiveService;
|
import org.alfresco.repo.node.archive.NodeArchiveService;
|
||||||
@ -204,16 +206,21 @@ public abstract class BaseVersionStoreTest extends BaseSpringTest
|
|||||||
|
|
||||||
TestWithUserUtils.authenticateUser(AuthenticationUtil.getAdminUserName(), PWD, this.rootNodeRef, this.authenticationService);
|
TestWithUserUtils.authenticateUser(AuthenticationUtil.getAdminUserName(), PWD, this.rootNodeRef, this.authenticationService);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates the test model used by the tests
|
* Creates the test model used by the tests
|
||||||
*/
|
*/
|
||||||
private void createTestModel()
|
private void createTestModel()
|
||||||
{
|
{
|
||||||
InputStream is = getClass().getClassLoader().getResourceAsStream("org/alfresco/repo/version/VersionStoreBaseTest_model.xml");
|
// register the test model
|
||||||
M2Model model = M2Model.createModel(is);
|
List<String> bootstrapModels = new ArrayList<String>();
|
||||||
dictionaryDAO.putModel(model);
|
bootstrapModels.add("org/alfresco/repo/version/VersionStoreBaseTest_model.xml");
|
||||||
}
|
|
||||||
|
DictionaryBootstrap bootstrap = new DictionaryBootstrap();
|
||||||
|
bootstrap.setModels(bootstrapModels);
|
||||||
|
bootstrap.setDictionaryDAO(dictionaryDAO);
|
||||||
|
bootstrap.bootstrap();
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a new versionable node
|
* Creates a new versionable node
|
||||||
|
Loading…
x
Reference in New Issue
Block a user