Fix for java.lang.NullPointerException in org.alfresco.repo.transfer.manifest.ManifestIntegrationTest.testSnapshot, DictionaryService injected

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@29924 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Philippe Dubois
2011-08-19 14:23:51 +00:00
parent 021a93f5c3
commit 696db9924d

View File

@@ -36,6 +36,7 @@ import javax.xml.parsers.SAXParser;
import javax.xml.parsers.SAXParserFactory; import javax.xml.parsers.SAXParserFactory;
import org.alfresco.model.ContentModel; import org.alfresco.model.ContentModel;
import org.alfresco.service.cmr.dictionary.DictionaryService;
import org.alfresco.service.cmr.repository.ChildAssociationRef; import org.alfresco.service.cmr.repository.ChildAssociationRef;
import org.alfresco.service.cmr.repository.ContentData; import org.alfresco.service.cmr.repository.ContentData;
import org.alfresco.service.cmr.repository.ContentService; import org.alfresco.service.cmr.repository.ContentService;
@@ -61,6 +62,7 @@ public class ManifestIntegrationTest extends BaseAlfrescoSpringTest
private TransferService transferService; private TransferService transferService;
private PermissionService permissionService; private PermissionService permissionService;
private ContentService contentService; private ContentService contentService;
private DictionaryService dictionaryService;
private NodeService mlAwareNodeService; private NodeService mlAwareNodeService;
/** /**
@@ -74,6 +76,7 @@ public class ManifestIntegrationTest extends BaseAlfrescoSpringTest
this.transferService = (TransferService)this.applicationContext.getBean("TransferService"); this.transferService = (TransferService)this.applicationContext.getBean("TransferService");
this.contentService = (ContentService)this.applicationContext.getBean("ContentService"); this.contentService = (ContentService)this.applicationContext.getBean("ContentService");
this.permissionService = (PermissionService)this.applicationContext.getBean("PermissionService"); this.permissionService = (PermissionService)this.applicationContext.getBean("PermissionService");
this.dictionaryService = (DictionaryService)this.applicationContext.getBean("DictionaryService");
this.mlAwareNodeService = (NodeService) this.applicationContext.getBean("mlAwareNodeService"); this.mlAwareNodeService = (NodeService) this.applicationContext.getBean("mlAwareNodeService");
} }
@@ -101,6 +104,7 @@ public class ManifestIntegrationTest extends BaseAlfrescoSpringTest
TransferManifestNodeFactoryImpl nodeFactory = new TransferManifestNodeFactoryImpl(); TransferManifestNodeFactoryImpl nodeFactory = new TransferManifestNodeFactoryImpl();
nodeFactory.setNodeService(nodeService); nodeFactory.setNodeService(nodeService);
nodeFactory.setPermissionService(permissionService); nodeFactory.setPermissionService(permissionService);
nodeFactory.setDictionaryService(dictionaryService);
nodeFactory.setMlAwareNodeService(mlAwareNodeService); nodeFactory.setMlAwareNodeService(mlAwareNodeService);
/** /**