use of org.lightcouch.Response in project camel by apache.
the class CouchDbConsumerUpdatesIntegrationTest method testDeletesOnly.
@Test
public void testDeletesOnly() throws InterruptedException {
to.expectedHeaderReceived(CouchDbConstants.HEADER_METHOD, "UPDATE");
to.expectedMessageCount(1);
JsonElement obj = new Gson().toJsonTree("{ \"randomString\" : \"" + UUID.randomUUID() + "\" }");
Response resp = client.save(obj);
client.remove(resp.getId(), resp.getRev());
to.assertIsSatisfied();
}
Aggregations