]> git.aero2k.de Git - tmp/jakarta-migration.git/commitdiff
CSPACE-5728: Substitute a relation in the reverse (reciprocal) direction.
authorAron Roberts <aron@socrates.berkeley.edu>
Tue, 8 Jan 2013 22:36:10 +0000 (14:36 -0800)
committerAron Roberts <aron@socrates.berkeley.edu>
Tue, 8 Jan 2013 22:36:10 +0000 (14:36 -0800)
services/IntegrationTests/src/test/resources/test-data/xmlreplay/batch/batch-update-object-loc.xml

index 1e306a61140964787a39c5a617e8231af5d1928d..22da039cbf46f76c48d101b433c7d46566efaa4a 100644 (file)
             <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