mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Merged HEAD-BUG-FIX (4.3/Cloud) to HEAD (4.3/Cloud)
60595: Merged V4.2-BUG-FIX (4.2.2) to HEAD-BUG-FIX (Cloud/4.3) 60362: Merged DEV to V4.2-BUG-FIX (4.2.2) 58112: Added missing transaction(s) in CheckOutCheckInServiceImplTest (MNT-9806) 58113: Added missing transaction(s) in LockableAspectInterceptorTest (MNT-9806) 58114: Added missing transaction(s) in LockableAspectInterceptorTest (MNT-9806) 58115: Added missing transaction(s) in TransactionCleanupTest (MNT-9806) 58116: Added missing transaction(s) in GetChildrenCannedQueryTest (MNT-9806) 58118: Added missing transaction(s) in RatingServiceIntegrationTest (MNT-9806) 58119: Added missing transaction(s) in ReplicationServiceIntegrationTest (MNT-9806) 58121: Added missing transaction(s) in PersonTest (MNT-9806) git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@62326 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -147,8 +147,8 @@ public class LinksServiceImplTest
|
||||
assertNotNull(link.getNodeRef());
|
||||
assertNotNull(link.getSystemName());
|
||||
|
||||
NodeRef container = NODE_SERVICE.getPrimaryParent(link.getNodeRef()).getParentRef();
|
||||
NodeRef site = NODE_SERVICE.getPrimaryParent(container).getParentRef();
|
||||
NodeRef container = PUBLIC_NODE_SERVICE.getPrimaryParent(link.getNodeRef()).getParentRef();
|
||||
NodeRef site = PUBLIC_NODE_SERVICE.getPrimaryParent(container).getParentRef();
|
||||
assertEquals(LINKS_SITE.getNodeRef(), site);
|
||||
|
||||
|
||||
@@ -199,11 +199,11 @@ public class LinksServiceImplTest
|
||||
|
||||
|
||||
// Check the underlying node
|
||||
assertEquals("Title", NODE_SERVICE.getProperty(link.getNodeRef(), LinksModel.PROP_TITLE));
|
||||
assertEquals("Description", NODE_SERVICE.getProperty(link.getNodeRef(), LinksModel.PROP_DESCRIPTION));
|
||||
assertEquals("http://www.alfresco.com/", NODE_SERVICE.getProperty(link.getNodeRef(), LinksModel.PROP_URL));
|
||||
assertEquals("Title", PUBLIC_NODE_SERVICE.getProperty(link.getNodeRef(), LinksModel.PROP_TITLE));
|
||||
assertEquals("Description", PUBLIC_NODE_SERVICE.getProperty(link.getNodeRef(), LinksModel.PROP_DESCRIPTION));
|
||||
assertEquals("http://www.alfresco.com/", PUBLIC_NODE_SERVICE.getProperty(link.getNodeRef(), LinksModel.PROP_URL));
|
||||
assertEquals("http://www.alfresco.com/", CONTENT_SERVICE.getReader(link.getNodeRef(), ContentModel.PROP_CONTENT).getContentString());
|
||||
assertEquals(false, NODE_SERVICE.hasAspect(link.getNodeRef(), LinksModel.ASPECT_INTERNAL_LINK));
|
||||
assertEquals(false, PUBLIC_NODE_SERVICE.hasAspect(link.getNodeRef(), LinksModel.ASPECT_INTERNAL_LINK));
|
||||
|
||||
|
||||
// Change it
|
||||
@@ -225,11 +225,11 @@ public class LinksServiceImplTest
|
||||
|
||||
|
||||
// Check the underlying node now
|
||||
assertEquals("New Title", NODE_SERVICE.getProperty(link.getNodeRef(), LinksModel.PROP_TITLE));
|
||||
assertEquals("Description", NODE_SERVICE.getProperty(link.getNodeRef(), LinksModel.PROP_DESCRIPTION));
|
||||
assertEquals("http://share.alfresco.com/", NODE_SERVICE.getProperty(link.getNodeRef(), LinksModel.PROP_URL));
|
||||
assertEquals("New Title", PUBLIC_NODE_SERVICE.getProperty(link.getNodeRef(), LinksModel.PROP_TITLE));
|
||||
assertEquals("Description", PUBLIC_NODE_SERVICE.getProperty(link.getNodeRef(), LinksModel.PROP_DESCRIPTION));
|
||||
assertEquals("http://share.alfresco.com/", PUBLIC_NODE_SERVICE.getProperty(link.getNodeRef(), LinksModel.PROP_URL));
|
||||
assertEquals("http://share.alfresco.com/", CONTENT_SERVICE.getReader(link.getNodeRef(), ContentModel.PROP_CONTENT).getContentString());
|
||||
assertEquals(true, NODE_SERVICE.hasAspect(link.getNodeRef(), LinksModel.ASPECT_INTERNAL_LINK));
|
||||
assertEquals(true, PUBLIC_NODE_SERVICE.hasAspect(link.getNodeRef(), LinksModel.ASPECT_INTERNAL_LINK));
|
||||
|
||||
|
||||
// Delete it
|
||||
|
Reference in New Issue
Block a user