]> git.aero2k.de Git - tmp/jakarta-migration.git/commitdiff
CSPACE-3770: Adding "wf_delete" workflow deleted query param. Added additional tests...
authorRichard Millet <richard.millet@berkeley.edu>
Sat, 9 Apr 2011 00:07:57 +0000 (00:07 +0000)
committerRichard Millet <richard.millet@berkeley.edu>
Sat, 9 Apr 2011 00:07:57 +0000 (00:07 +0000)
services/client/src/main/java/org/collectionspace/services/client/test/AbstractServiceTestImpl.java

index 6aff198cedcc61fa630bc9ca17548980b055941e..1fde7f6a03df72cfa00d01bb79246790b6ed5bb6 100644 (file)
@@ -665,8 +665,12 @@ public abstract class AbstractServiceTestImpl extends BaseServiceTest implements
         //
         CollectionSpaceClient clientCandidate = this.getClientInstance();
         if (CollectionSpacePoxClient.class.isInstance(clientCandidate) != true) {  //FIXME: REM - We should remove this check and instead make CollectionSpaceClient support the readIncludeDeleted() method.
+               String clientCandidateName = "Unknown";
+               if (clientCandidate != null) {
+                       clientCandidateName = clientCandidate.getClass().getName();
+               }
                String msg = "Workflow tests are incomplete because " +
-               clientCandidate.getClass().getName() + " does not support readIncludeDeleted() method.";
+                       clientCandidateName + " does not support readIncludeDeleted() method.";
                logger.warn(msg);
                throw new UnsupportedOperationException();
         }