Assert.assertEquals(res.getStatus(), Response.Status.CREATED.getStatusCode());
//store updateId locally for "update" test
- if (updateId == null)
+ if (updateId == null) {
updateId = extractId(res);
- else
+ } else {
deleteId = extractId(res);
+ System.out.println("Set deleteId: " + deleteId);
+ }
}
@Test(dependsOnMethods = {"createCollectionObject"})
}
}
- @Test(dependsOnMethods = {"updateCollectionObject"})
+ @Test(dependsOnMethods = {"createCollection"})
public void deleteCollectionObject() {
+ System.out.println("Calling deleteCollectionObject:" + deleteId);
ClientResponse<Response> res = collectionObjectClient.deleteCollectionObject(deleteId);
verbose("deleteCollectionObject: csid=" + deleteId);
verbose("deleteCollectionObject: status = " + res.getStatus());
private static final String SCHEME = "http";\r
private static final String HOST = "localhost";\r
private static final String PORT = "8080";\r
- private static final String URI = "/helloworld/cspace-nuxeo";\r
+ private static final String URI = "/CollectionSpace/nuxeo-rest";\r
private static final String URL = SCHEME + "://" +\r
HOST + ":" +\r
PORT +\r