]> git.aero2k.de Git - tmp/jakarta-migration.git/commitdiff
CSPACE-327: Added read single positive and negative tests
authorAron Roberts <aron@socrates.berkeley.edu>
Thu, 6 Aug 2009 01:15:14 +0000 (01:15 +0000)
committerAron Roberts <aron@socrates.berkeley.edu>
Thu, 6 Aug 2009 01:15:14 +0000 (01:15 +0000)
services/collectionobject/client/src/test/java/org/collectionspace/services/client/test/CollectionObjectServiceTest.java

index 619ba790fe5de13b527ac24d2c02d0178f919d00..e707e4717a763ec767438a6d7572251df6094f0c 100644 (file)
@@ -118,12 +118,10 @@ public class CollectionObjectServiceTest {
    * Expected result: NullPointerException
    * (Make sure this is a reported exception in the called class.)
    */
-/*
   @Test(dependsOnMethods = {"createCollectionObject"}, expectedExceptions = NullPointerException.class)
   public void createNullCollectionObject() {
     ClientResponse<Response> res = collectionObjectClient.createCollectionObject(null);
   }
-*/
                
   /**
    * Tests creation of a CollectionObject by sending data in the wrong format
@@ -168,7 +166,6 @@ public class CollectionObjectServiceTest {
    *
    * Expected status code: 200 OK
    */
-/*
   @Test(dependsOnMethods = {"createCollectionObject"})
   public void getCollectionObject() {
     ClientResponse<CollectionObject> res = 
@@ -176,7 +173,6 @@ public class CollectionObjectServiceTest {
     verbose("getCollectionObject: status = " + res.getStatus());
     Assert.assertEquals(res.getStatus(), Response.Status.OK.getStatusCode());
   }
-*/
 
   // Failure outcomes
   // ----------------
@@ -187,7 +183,6 @@ public class CollectionObjectServiceTest {
    *
    * Expected status code: 404 Not Found
    */
-/*
   @Test(dependsOnMethods = {"createCollectionObject"})
   public void getNonExistentCollectionObject() {
     ClientResponse<CollectionObject> res = 
@@ -195,7 +190,6 @@ public class CollectionObjectServiceTest {
     verbose("getNonExistentCollectionObject: status = " + res.getStatus());
     Assert.assertEquals(res.getStatus(), Response.Status.NOT_FOUND.getStatusCode());
   }
-*/  
 
   // ---------------------------------------------------------------
   // CRUD tests : READ (list, or multiple) tests