quick build fix to take account changes to AssociationRef

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@18866 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Mark Rogers
2010-02-25 23:18:59 +00:00
parent 14a4f808b8
commit 7524b7009b
3 changed files with 5 additions and 5 deletions

View File

@@ -653,7 +653,7 @@ public class RepoTransferReceiverImplTest extends BaseAlfrescoSpringTest
}
aspects.add(ContentModel.ASPECT_ATTACHABLE);
AssociationRef newAssoc = new AssociationRef(source.getNodeRef(), ContentModel.ASSOC_ATTACHMENTS, target
AssociationRef newAssoc = new AssociationRef(null, source.getNodeRef(), ContentModel.ASSOC_ATTACHMENTS, target
.getNodeRef());
currentRefereePeers.add(newAssoc);
currentReferencedPeers.add(newAssoc);

View File

@@ -200,13 +200,13 @@ public class TransferManifestTest extends TestCase
List<AssociationRef> targetAssocs = new ArrayList<AssociationRef>();
List<AssociationRef> sourceAssocs = new ArrayList<AssociationRef>();
targetAssocs.add(new AssociationRef(new NodeRef(StoreRef.STORE_REF_WORKSPACE_SPACESSTORE, "SA"),
targetAssocs.add(new AssociationRef(null, new NodeRef(StoreRef.STORE_REF_WORKSPACE_SPACESSTORE, "SA"),
QName.createQName("{gsxhjsx}", "app:super"),
new NodeRef(StoreRef.STORE_REF_WORKSPACE_SPACESSTORE, "TA")));
sourceAssocs.add(new AssociationRef(new NodeRef(StoreRef.STORE_REF_WORKSPACE_SPACESSTORE, "HH"),
sourceAssocs.add(new AssociationRef(null, new NodeRef(StoreRef.STORE_REF_WORKSPACE_SPACESSTORE, "HH"),
QName.createQName("{gsxhjsx}", "app:super"),
new NodeRef(StoreRef.STORE_REF_WORKSPACE_SPACESSTORE, "JJ")));

View File

@@ -441,9 +441,9 @@ public class XMLTransferManifestReader extends DefaultHandler implements Content
NodeRef target = (NodeRef)props.get("target");
QName type = (QName) props.get("type");
List<AssociationRef> assocs = (List<AssociationRef>)props.get("assocs");
AssociationRef assoc = new AssociationRef(source, type, target);
AssociationRef assoc = new AssociationRef(null, source, type, target);
assocs.add(assoc);
props.put("assoc", new AssociationRef(source, type, target));
props.put("assoc", new AssociationRef(null, source, type, target));
}
else if(elementName.equals(ManifestModel.LOCALNAME_ELEMENT_PRIMARY_PATH))
{