use of com.cloudant.client.api.model.Response in project java-cloudant by cloudant.
the class DesignDocumentsTest method designDocRemoveNoPrefixWithObject.
/**
* Validate that a design document can be removed without using the "_design" prefix when a
* DesignDocument object is supplied
*
* @throws Exception
*/
@Test
public void designDocRemoveNoPrefixWithObject() throws Exception {
// Write a doc with a _design prefix
Response r = designManager.put(designDocExample);
DesignDocument ddoc = new DesignDocument();
ddoc.setId("example");
ddoc.setRevision(r.getRev());
// Retrieve it without a prefix
Utils.assertOKResponse(designManager.remove(ddoc));
}
Aggregations