]> git.aero2k.de Git - tmp/jakarta-migration.git/commitdiff
CSPACE-3178: Modification of quick hack to disable garbage refnames in location autho...
authorAron Roberts <aron@socrates.berkeley.edu>
Wed, 12 Oct 2011 01:38:24 +0000 (01:38 +0000)
committerAron Roberts <aron@socrates.berkeley.edu>
Wed, 12 Oct 2011 01:38:24 +0000 (01:38 +0000)
services/location/client/src/test/java/org/collectionspace/services/client/test/LocationAuthorityServiceTest.java

index fb43bf132aeb6a3627cd9e87ada9747fc4f1e204..0f4e44fc3e61f8068a57ecd362710f8a053fc03c 100644 (file)
@@ -207,9 +207,9 @@ public class LocationAuthorityServiceTest extends AbstractServiceTestImpl { //FI
         }
         // Store the ID returned from the first resource created
         // for additional tests below.
-        final String NULL_REFNAME = null;
+        final String EMPTY_REFNAME = "";
         if (knownResourceId == null){
-               setKnownResource( newID, shortId, NULL_REFNAME );
+               setKnownResource( newID, shortId, EMPTY_REFNAME );
             if (logger.isDebugEnabled()) {
                 logger.debug(testName + ": knownResourceId=" + knownResourceId);
             }
@@ -1119,9 +1119,9 @@ public class LocationAuthorityServiceTest extends AbstractServiceTestImpl { //FI
        // LocationAuthorityClientUtils.createLocationInstance(
        //              LocationAuthorityClientUtils.createLocationRefName(knownResourceRefName, "nonEx", "Non Existent"), 
        //              nonexMap, client.getItemCommonPartName() );
-        final String NULL_REFNAME = null;
+        final String EMPTY_REFNAME = "";
         PoxPayloadOut multipart = 
-                LocationAuthorityClientUtils.createLocationInstance(NULL_REFNAME, 
+                LocationAuthorityClientUtils.createLocationInstance(EMPTY_REFNAME, 
                        nonexMap, client.getItemCommonPartName() );
         ClientResponse<String> res =
                 client.updateItem(knownResourceId, NON_EXISTENT_ID, multipart);