mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Fixed AssociationRef.equals method that was causing association matching to fail
Fixed node tests that were hiding a NullPointerException when node associations weren't found Fixed NodeAssoc AssociationRef caching for cases where the source or target nodes move stores Removed storage of Path property for archived nodes git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2886 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -1206,24 +1206,6 @@ public abstract class BaseNodeServiceTest extends BaseSpringTest
|
||||
return assocRef;
|
||||
}
|
||||
|
||||
public void testAssociationToIncorrectNodeType() throws Exception
|
||||
{
|
||||
AssociationRef assocRef = createAssociation();
|
||||
NodeRef sourceRef = assocRef.getSourceRef();
|
||||
NodeRef targetRef = assocRef.getTargetRef();
|
||||
QName qname = assocRef.getTypeQName();
|
||||
try
|
||||
{
|
||||
// attempt the association in reverse
|
||||
nodeService.createAssociation(sourceRef, targetRef, qname);
|
||||
fail("Incorrect node type not detected");
|
||||
}
|
||||
catch (RuntimeException e)
|
||||
{
|
||||
// expected
|
||||
}
|
||||
}
|
||||
|
||||
public void testDuplicateAssociationDetection() throws Exception
|
||||
{
|
||||
AssociationRef assocRef = createAssociation();
|
||||
|
Reference in New Issue
Block a user