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:
Jan Vonka
2007-09-11 08:17:07 +00:00
parent 9319f0bf92
commit 7e60152931
2 changed files with 4 additions and 1 deletions

View File

@@ -353,7 +353,7 @@ public class DictionaryModelType implements ContentServicePolicies.OnContentUpda
{
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 value = (Boolean)nodeService.getProperty(nodeRef, ContentModel.PROP_MODEL_ACTIVE);
if (value != null)

View File

@@ -224,6 +224,9 @@ public class DictionaryRepositoryBootstrapTest extends BaseAlfrescoSpringTest
propertyName);
contentWriter1.putContent(modelOne);
// activate the model
nodeService.setProperty(model, ContentModel.PROP_MODEL_ACTIVE, new Boolean(true));
return model;
}