<expectedCodes>201</expectedCodes>\r
</test>\r
\r
- <test ID="relateMovement3ToCollectionObject">\r
+ <!-- Reversal of the direction of the relationship -->\r
+ <test ID="relateCollectionObjectToMovement3">\r
<method>POST</method>\r
<uri>/cspace-services/relations</uri>\r
<filename>batch/relation.xml</filename>\r
<vars>\r
- <var ID="subjectCsid">${createCollectionObject.CSID}</var>\r
- <var ID="subjectDocumentType">CollectionObject</var>\r
- <var ID="objectCsid">${createMovement3.CSID}</var>\r
- <var ID="objectDocumentType">Movement</var>\r
+ <var ID="subjectCsid">${createMovement3.CSID}</var>\r
+ <var ID="subjectDocumentType">Movement</var>\r
+ <var ID="objectCsid">${createCollectionObject.CSID}</var>\r
+ <var ID="objectDocumentType">CollectionObject</var>\r
</vars>\r
<expectedCodes>201</expectedCodes>\r
</test>\r
</test>\r
\r
<!-- Verify that, following the invocation of the batch job, the -->\r
- <!-- computedCurrentLocation field in the CollectionObject record -->\r
- <!-- has been updated to the appropriate value, reflecting the -->\r
- <!-- most recent movement (e.g. the Movement record with latest locationDate). -->\r
+ <!-- computedCurrentLocation field in the CollectionObject record has -->\r
+ <!-- been updated to the appropriate value, reflecting the most recent -->\r
+ <!-- movement (e.g. the Movement record with the most recent locationDate). -->\r
<test ID="readUpdatedCollectionObjectRecord">\r
<method>GET</method>\r
<uri>/cspace-services/collectionobjects/${createCollectionObject.CSID}</uri>\r