RM: fix failing unit test

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@54473 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Roy Wetherall
2013-08-27 07:05:25 +00:00
parent 3e0167e4b1
commit 0d187a4970

View File

@@ -96,6 +96,14 @@ public class PublishUpdatesJobExecuter extends RecordsManagementJobExecuter
this.behaviourFilter = behaviourFilter;
}
/**
* @param dictionaryService dictionary service
*/
public void setDictionaryService(DictionaryService dictionaryService)
{
this.dictionaryService = dictionaryService;
}
/**
* @see org.alfresco.module.org_alfresco_module_rm.job.RecordsManagementJobExecuter#executeImpl()
*/
@@ -174,7 +182,8 @@ public class PublishUpdatesJobExecuter extends RecordsManagementJobExecuter
boolean result = false;
// ensure that the rm content model has been loaded
if (dictionaryService.getAspect(ASPECT_UNPUBLISHED_UPDATE) != null)
if (dictionaryService != null &&
dictionaryService.getAspect(ASPECT_UNPUBLISHED_UPDATE) != null)
{
result = true;
}