Merged 5.1-MNT1 (5.1.0) to HEAD (5.1)

115460 adavis: Merged 5.1.N (5.1.1) to 5.1-MNT1 (5.1.0)
      113727 amorarasu: Merged 5.0.N (5.0.3) to 5.1.N (5.1.1)
         113684 adavis: Merged V4.2-BUG-FIX (4.2.6) to 5.0.N (5.0.3) (PARTIAL MERGE)
            113603 cturlica: Merged DEV to V4.2-BUG-FIX (4.2.6)
               113602 cturlica: MNT-14504: Cloud pull process not working after large delete


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@115670 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Alan Davis
2015-10-30 00:10:30 +00:00
parent 9f4fdeb0e4
commit 4165e47032
10 changed files with 327 additions and 8 deletions

View File

@@ -263,7 +263,31 @@ public class NodeServiceImplTest extends BaseVersionStoreTest
assertNotNull(assocs);
assertEquals(origAssocs.size(), assocs.size());
}
/**
* Tests get target associations by property value.</p>
* See <b>MNT-14504</b> for more details.
*/
public void testGetTargetAssocsByPropertyValue()
{
// Create a new versionable node
NodeRef versionableNode = createNewVersionableNode();
QName propertyQName = PROP_1;
Serializable propertyValue = VALUE_1;
// Store the current details of the target associations
List<AssociationRef> origAssocs = this.dbNodeService.getTargetAssocsByPropertyValue(versionableNode, RegexQNamePattern.MATCH_ALL,
propertyQName, propertyValue);
// Create a new version
Version version = createVersion(versionableNode, this.versionProperties);
List<AssociationRef> assocs = this.versionStoreNodeService.getTargetAssocsByPropertyValue(version.getFrozenStateNodeRef(),
RegexQNamePattern.MATCH_ALL, propertyQName, propertyValue);
assertNotNull(assocs);
assertEquals(origAssocs.size(), assocs.size());
}
/**
* Test hasAspect
*/