use of com.cloudant.client.org.lightcouch.DocumentConflictException in project java-cloudant by cloudant.
the class ResponseTest method verifyDocumentConflict.
@Test
public void verifyDocumentConflict() {
try {
Response response = db.save(foo);
assertEquals(2, response.getStatusCode() / 100);
db.save(foo);
fail("A DocumentConflictException should be thrown");
} catch (DocumentConflictException e) {
exceptionAsserts(e, 409, "");
}
}
Aggregations