mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Merged BRANCHES/V3.4 to HEAD:
23712: Fixed up fault in unit test introduced by earlier tweaks to the transfer service git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@23714 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -40,7 +40,9 @@ import org.alfresco.service.cmr.repository.ChildAssociationRef;
|
||||
import org.alfresco.service.cmr.repository.ContentData;
|
||||
import org.alfresco.service.cmr.repository.ContentService;
|
||||
import org.alfresco.service.cmr.repository.ContentWriter;
|
||||
import org.alfresco.service.cmr.repository.MLText;
|
||||
import org.alfresco.service.cmr.repository.NodeRef;
|
||||
import org.alfresco.service.cmr.repository.NodeService;
|
||||
import org.alfresco.service.cmr.repository.StoreRef;
|
||||
import org.alfresco.service.cmr.security.PermissionService;
|
||||
import org.alfresco.service.cmr.transfer.TransferService;
|
||||
@@ -59,6 +61,7 @@ public class ManifestIntegrationTest extends BaseAlfrescoSpringTest
|
||||
private TransferService transferService;
|
||||
private PermissionService permissionService;
|
||||
private ContentService contentService;
|
||||
private NodeService mlAwareNodeService;
|
||||
|
||||
/**
|
||||
* Called during the transaction setup
|
||||
@@ -71,6 +74,7 @@ public class ManifestIntegrationTest extends BaseAlfrescoSpringTest
|
||||
this.transferService = (TransferService)this.applicationContext.getBean("TransferService");
|
||||
this.contentService = (ContentService)this.applicationContext.getBean("ContentService");
|
||||
this.permissionService = (PermissionService)this.applicationContext.getBean("PermissionService");
|
||||
this.mlAwareNodeService = (NodeService) this.applicationContext.getBean("mlAwareNodeService");
|
||||
}
|
||||
|
||||
public void testSnapshot() throws Exception
|
||||
@@ -97,6 +101,7 @@ public class ManifestIntegrationTest extends BaseAlfrescoSpringTest
|
||||
TransferManifestNodeFactoryImpl nodeFactory = new TransferManifestNodeFactoryImpl();
|
||||
nodeFactory.setNodeService(nodeService);
|
||||
nodeFactory.setPermissionService(permissionService);
|
||||
nodeFactory.setMlAwareNodeService(mlAwareNodeService);
|
||||
|
||||
/**
|
||||
* Create our transfer target
|
||||
@@ -212,7 +217,7 @@ public class ManifestIntegrationTest extends BaseAlfrescoSpringTest
|
||||
assertEquals("content data wrong size", data.getSize(), CONTENT_STRING.length());
|
||||
assertEquals("content locale wrong", data.getLocale(), CONTENT_LOCALE);
|
||||
|
||||
String childTitle = (String)readNode.getProperties().get(ContentModel.PROP_TITLE);
|
||||
String childTitle = ((MLText)readNode.getProperties().get(ContentModel.PROP_TITLE)).getDefaultValue();
|
||||
assertEquals("content title wrong", childTitle, CONTENT_TITLE);
|
||||
|
||||
String childName = (String)readNode.getProperties().get(ContentModel.PROP_NAME);
|
||||
|
Reference in New Issue
Block a user