]> git.aero2k.de Git - tmp/jakarta-migration.git/commitdiff
NOJIRA - Adding some more test payloads for person and org testing.
authorPatrick Schmitz <pschmitz@berkeley.edu>
Fri, 27 May 2011 18:20:31 +0000 (18:20 +0000)
committerPatrick Schmitz <pschmitz@berkeley.edu>
Fri, 27 May 2011 18:20:31 +0000 (18:20 +0000)
services/IntegrationTests/src/test/resources/test-data/xmlreplay/collectionobject/AuthRefsCollObj.xml [new file with mode: 0644]
services/IntegrationTests/src/test/resources/test-data/xmlreplay/organization/organizations_ucb.xml [new file with mode: 0644]
services/IntegrationTests/src/test/resources/test-data/xmlreplay/organization/organizations_ucbist.xml [new file with mode: 0644]
services/IntegrationTests/src/test/resources/test-data/xmlreplay/person/person_pmadry.xml [new file with mode: 0644]
services/IntegrationTests/src/test/resources/test-data/xmlreplay/person/person_pschmitz.xml [new file with mode: 0644]
services/IntegrationTests/src/test/resources/test-data/xmlreplay/person/personauthorities_testpersonauth.xml [new file with mode: 0644]

diff --git a/services/IntegrationTests/src/test/resources/test-data/xmlreplay/collectionobject/AuthRefsCollObj.xml b/services/IntegrationTests/src/test/resources/test-data/xmlreplay/collectionobject/AuthRefsCollObj.xml
new file mode 100644 (file)
index 0000000..04c7259
--- /dev/null
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="UTF-8"?>\r
+<document name="collectionobjects">\r
+<ns2:collectionobjects_common xmlns:ns2="http://collectionspace.org/services/collectionobject" >\r
+       <objectNumber>1-1001</objectNumber>\r
+       <catalogNumber>PLS-2011.1</catalogNumber>\r
+       <responsibleDepartments>\r
+               <responsibleDepartment>ethnography</responsibleDepartment>\r
+       </responsibleDepartments>\r
+       <ownershipAccess>open</ownershipAccess>\r
+       <objectProductionOrganizationGroupList>\r
+               <objectProductionOrganizationGroup>\r
+                       <objectProductionOrganizationRole>Sponsor</objectProductionOrganizationRole>\r
+                       <objectProductionOrganization>urn:cspace:org.collectionspace.demo:orgauthority:name(organization):organization:name(ucberkeley)'UC Berkeley'</objectProductionOrganization>\r
+               </objectProductionOrganizationGroup>\r
+               <objectProductionOrganizationGroup>\r
+                       <objectProductionOrganizationRole>Coding</objectProductionOrganizationRole>\r
+                       <objectProductionOrganization>urn:cspace:org.collectionspace.demo:orgauthority:name(organization):organization:name(ucberkeleyist)'UCB IST'</objectProductionOrganization>\r
+               </objectProductionOrganizationGroup>\r
+       </objectProductionOrganizationGroupList>\r
+       <objectProductionPersonGroupList>\r
+               <objectProductionPersonGroup>\r
+                       <objectProductionPersonRole/>\r
+                       <objectProductionPerson>urn:cspace:org.collectionspace.demo:personauthority:name(person):person:name(pschmitz)'Patrick Schmitz'</objectProductionPerson>\r
+               </objectProductionPersonGroup>\r
+       </objectProductionPersonGroupList>\r
+       <comments>\r
+               <comment>A virtual object to check authRefs</comment>\r
+       </comments>\r
+       <inscriptionDescriptionInscriber>urn:cspace:org.collectionspace.demo:personauthority:name(person):person:name(pmadry)'Penelope Madry'</inscriptionDescriptionInscriber>\r
+</ns2:collectionobjects_common>\r
+</document>\r
diff --git a/services/IntegrationTests/src/test/resources/test-data/xmlreplay/organization/organizations_ucb.xml b/services/IntegrationTests/src/test/resources/test-data/xmlreplay/organization/organizations_ucb.xml
new file mode 100644 (file)
index 0000000..15d1ea6
--- /dev/null
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\r
+<document name="organizations">\r
+<ns2:organizations_common xmlns:ns2="http://collectionspace.org/services/organization" xmlns:ns3="http://collectionspace.org/services/jaxb">\r
+       <shortIdentifier>ucberkeley</shortIdentifier>\r
+       <refName>urn:cspace:org.collectionspace.demo:orgauthority:name(testorgauth):organization:name(ucberkeley)'UC Berkeley'</refName>\r
+       <displayNameComputed>false</displayNameComputed>\r
+       <shortDisplayNameComputed>false</shortDisplayNameComputed>\r
+       <shortName>U.C. Berkeley</shortName>\r
+       <longName>University of California, Berkeley</longName>\r
+       <foundingPlace>Berkeley, CA</foundingPlace>\r
+       <subBodies>\r
+               <subBody>urn:cspace:org.collectionspace.demo:orgauthority:name(testorgauth):organization:name(ucberkeleyist)'UCB IST'</subBody>\r
+       </subBodies>\r
+</ns2:organizations_common>\r
+</document>\r
+       \r
diff --git a/services/IntegrationTests/src/test/resources/test-data/xmlreplay/organization/organizations_ucbist.xml b/services/IntegrationTests/src/test/resources/test-data/xmlreplay/organization/organizations_ucbist.xml
new file mode 100644 (file)
index 0000000..0e9656f
--- /dev/null
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\r
+<document name="organizations">\r
+<ns2:organizations_common xmlns:ns2="http://collectionspace.org/services/organization" xmlns:ns3="http://collectionspace.org/services/jaxb">\r
+       <shortIdentifier>ucberkeley</shortIdentifier>\r
+       <refName>urn:cspace:org.collectionspace.demo:orgauthority:name(testorgauth):organization:name(ucberkeleyist)'UCB IST'</refName>\r
+       <displayNameComputed>false</displayNameComputed>\r
+       <shortDisplayNameComputed>false</shortDisplayNameComputed>\r
+       <shortName>U.C. Berkeley IST</shortName>\r
+       <longName>University of California, Berkeley Information Systems and Technology</longName>\r
+       <foundingPlace>Berkeley, CA</foundingPlace>\r
+</ns2:organizations_common>\r
+</document>\r
+\r
diff --git a/services/IntegrationTests/src/test/resources/test-data/xmlreplay/person/person_pmadry.xml b/services/IntegrationTests/src/test/resources/test-data/xmlreplay/person/person_pmadry.xml
new file mode 100644 (file)
index 0000000..6e4b973
--- /dev/null
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\r
+<document name="persons">\r
+  <ns2:persons_common xmlns:ns2="http://collectionspace.org/services/person" xmlns:ns3="http://collectionspace.org/services/jaxb">\r
+       <shortIdentifier>pmadry</shortIdentifier>\r
+       <refName>urn:cspace:org.collectionspace.demo:personauthority:name(testpersonauth):person:name(pmadry)'Penelope Madry'</refName>\r
+       <displayNameComputed>false</displayNameComputed>\r
+       <shortDisplayNameComputed>false</shortDisplayNameComputed>\r
+       <shortDisplayName>Penelope Madry</shortDisplayName>\r
+       <displayName>Penelope Madry, New York</displayName>\r
+       <bioNote>Project Manager for CollectionSpace</bioNote>\r
+  </ns2:persons_common>\r
+</document>\r
diff --git a/services/IntegrationTests/src/test/resources/test-data/xmlreplay/person/person_pschmitz.xml b/services/IntegrationTests/src/test/resources/test-data/xmlreplay/person/person_pschmitz.xml
new file mode 100644 (file)
index 0000000..e0f75dc
--- /dev/null
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\r
+<document name="persons">\r
+  <ns2:persons_common xmlns:ns2="http://collectionspace.org/services/person" xmlns:ns3="http://collectionspace.org/services/jaxb">\r
+       <shortIdentifier>pschmitz</shortIdentifier>\r
+       <refName>urn:cspace:org.collectionspace.demo:personauthority:name(testpersonauth):person:name(pschmitz)'Patrick Schmitz'</refName>\r
+       <displayNameComputed>false</displayNameComputed>\r
+       <shortDisplayNameComputed>false</shortDisplayNameComputed>\r
+       <shortDisplayName>Patrick Schmitz</shortDisplayName>\r
+       <displayName>Patrick Schmitz, Berkeley</displayName>\r
+       <bioNote>Technical Lead for CollectionSpace</bioNote>\r
+  </ns2:persons_common>\r
+</document>\r
diff --git a/services/IntegrationTests/src/test/resources/test-data/xmlreplay/person/personauthorities_testpersonauth.xml b/services/IntegrationTests/src/test/resources/test-data/xmlreplay/person/personauthorities_testpersonauth.xml
new file mode 100644 (file)
index 0000000..5fe4321
--- /dev/null
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\r
+<document name="personauthorities">\r
+<ns2:personauthorities_common xmlns:ns2="http://collectionspace.org/services/person" xmlns:ns3="http://collectionspace.org/services/jaxb">\r
+  <shortIdentifier>testpersonauth</shortIdentifier>\r
+  <displayName>Test Person Authority</displayName>\r
+  <refName>urn:cspace:org.collectionspace.demo:personauthority:name(testpersonauth)'Test Person Authority'</refName>\r
+  <vocabType>PersonAuthority</vocabType>\r
+</ns2:personauthorities_common>\r
+</document>\r
+\r