mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user