From: Aron Roberts Date: Thu, 6 Aug 2009 01:19:14 +0000 (+0000) Subject: CSPACE-327: Added test for sending null CollectionObject to client proxy X-Git-Url: https://git.aero2k.de/?a=commitdiff_plain;h=96b9510b85740b1ce09c3cbb15d6a2a98710abaa;p=tmp%2Fjakarta-migration.git CSPACE-327: Added test for sending null CollectionObject to client proxy --- diff --git a/services/collectionobject/client/src/test/java/org/collectionspace/services/client/test/CollectionObjectServiceTest.java b/services/collectionobject/client/src/test/java/org/collectionspace/services/client/test/CollectionObjectServiceTest.java index e707e4717..42901fd34 100644 --- a/services/collectionobject/client/src/test/java/org/collectionspace/services/client/test/CollectionObjectServiceTest.java +++ b/services/collectionobject/client/src/test/java/org/collectionspace/services/client/test/CollectionObjectServiceTest.java @@ -115,10 +115,10 @@ public class CollectionObjectServiceTest { * * Expected status code: (none) * - * Expected result: NullPointerException + * Expected result: IllegalArgumentException * (Make sure this is a reported exception in the called class.) */ - @Test(dependsOnMethods = {"createCollectionObject"}, expectedExceptions = NullPointerException.class) + @Test(dependsOnMethods = {"createCollectionObject"}, expectedExceptions = IllegalArgumentException.class) public void createNullCollectionObject() { ClientResponse res = collectionObjectClient.createCollectionObject(null); }