]> git.aero2k.de Git - tmp/jakarta-migration.git/commitdiff
CSPACE-2578: Adding XML documents used in Acquisition service payload tests, missing...
authorAron Roberts <aron@socrates.berkeley.edu>
Thu, 5 Aug 2010 02:40:04 +0000 (02:40 +0000)
committerAron Roberts <aron@socrates.berkeley.edu>
Thu, 5 Aug 2010 02:40:04 +0000 (02:40 +0000)
services/acquisition/client/src/test/java/org/collectionspace/services/client/test/AcquisitionServiceTest.java
services/acquisition/client/src/test/resources/test-data/cspace-2578-no-whitespace.xml [new file with mode: 0644]
services/acquisition/client/src/test/resources/test-data/cspace-2578-whitespace.xml [new file with mode: 0644]

index 92d1d261398f29fcaa2a41fc22d7e4e9cd4d9f9f..f66b21c418492e37c382e6985393d5f9cd3f4901 100644 (file)
@@ -179,8 +179,8 @@ public class AcquisitionServiceTest extends AbstractServiceTestImpl {
     // out for check-in, to prevent service tests from failing.  Can uncomment to test
     // fixes, and also after the issue is resolved, to help detect any regressions.
 
-    // @Test(dataProvider = "testName", dataProviderClass = AbstractServiceTestImpl.class,
-    //    dependsOnMethods = {"create", "testSubmitRequest"}, groups = {"cspace2578group"})
+    @Test(dataProvider = "testName", dataProviderClass = AbstractServiceTestImpl.class,
+        dependsOnMethods = {"create", "testSubmitRequest"}, groups = {"cspace2578group"})
     public void createFromXmlWhitespaceAfterRepeatableGroupTag(String testName) throws Exception {
         if (logger.isDebugEnabled()) {
             logger.debug(testBanner(testName, CLASS_NAME));
diff --git a/services/acquisition/client/src/test/resources/test-data/cspace-2578-no-whitespace.xml b/services/acquisition/client/src/test/resources/test-data/cspace-2578-no-whitespace.xml
new file mode 100644 (file)
index 0000000..f4e3138
--- /dev/null
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="utf-8" standalone="yes"?>
+<!--
+    Document   : cspace-2578-no-whitespace.xml
+    Created on :
+    Author     :
+    Description: Test data for http://issues.collectionspace.org/browse/CSPACE-2578
+-->
+
+<ns2:acquisitions_common xmlns:ns2="http://collectionspace.org/services/acquisition"
+xmlns:ns3="http://collectionspace.org/services/jaxb">
+  <acquisitionFundingList>
+    <!-- Note: no whitespace between acquisitionFunding and its first child element tag -->
+    <acquisitionFunding><acquisitionFundingSource>
+      urn:cspace:org.collectionspace.demo:personauthority:name(TestPersonAuth)'TestPersonAuth':person:name(franFundingSourceOne)</acquisitionFundingSource>
+    </acquisitionFunding>
+  </acquisitionFundingList>
+</ns2:acquisitions_common>
diff --git a/services/acquisition/client/src/test/resources/test-data/cspace-2578-whitespace.xml b/services/acquisition/client/src/test/resources/test-data/cspace-2578-whitespace.xml
new file mode 100644 (file)
index 0000000..aa2dd2b
--- /dev/null
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="utf-8" standalone="yes"?>
+<!--
+    Document   : cspace-2578-whitespace.xml
+    Created on : 
+    Author     : 
+    Description: Test data for http://issues.collectionspace.org/browse/CSPACE-2578
+-->
+
+<ns2:acquisitions_common xmlns:ns2="http://collectionspace.org/services/acquisition"
+xmlns:ns3="http://collectionspace.org/services/jaxb">
+  <acquisitionFundingList>
+    <!-- Note: whitespace between acquisitionFunding and its first child element tag -->
+    <acquisitionFunding> <acquisitionFundingSource>
+      urn:cspace:org.collectionspace.demo:personauthority:name(TestPersonAuth)'TestPersonAuth':person:name(franFundingSourceOne)</acquisitionFundingSource>
+    </acquisitionFunding>
+  </acquisitionFundingList>
+</ns2:acquisitions_common>