mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Fix unit test / build - newly created model is not active by default, hence needs to be explicitly activated.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@6753 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -353,7 +353,7 @@ public class DictionaryModelType implements ContentServicePolicies.OnContentUpda
|
|||||||
{
|
{
|
||||||
public Object doWork()
|
public Object doWork()
|
||||||
{
|
{
|
||||||
// Find out whether the model is active (by default it is)
|
// Find out whether the model is active
|
||||||
boolean isActive = false;
|
boolean isActive = false;
|
||||||
Boolean value = (Boolean)nodeService.getProperty(nodeRef, ContentModel.PROP_MODEL_ACTIVE);
|
Boolean value = (Boolean)nodeService.getProperty(nodeRef, ContentModel.PROP_MODEL_ACTIVE);
|
||||||
if (value != null)
|
if (value != null)
|
||||||
|
@@ -224,6 +224,9 @@ public class DictionaryRepositoryBootstrapTest extends BaseAlfrescoSpringTest
|
|||||||
propertyName);
|
propertyName);
|
||||||
contentWriter1.putContent(modelOne);
|
contentWriter1.putContent(modelOne);
|
||||||
|
|
||||||
|
// activate the model
|
||||||
|
nodeService.setProperty(model, ContentModel.PROP_MODEL_ACTIVE, new Boolean(true));
|
||||||
|
|
||||||
return model;
|
return model;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user