Search in sources :

Example 6 with Params

use of com.cloudant.client.api.model.Params in project java-cloudant by cloudant.

the class DocumentsCRUDTest method findWithParams.

@Test
public void findWithParams() {
    Response response = db.save(new Foo());
    Foo foo = db.find(Foo.class, response.getId(), new Params().revsInfo());
    assertNotNull(foo);
}
Also used : Response(com.cloudant.client.api.model.Response) Params(com.cloudant.client.api.model.Params) Test(org.junit.jupiter.api.Test)

Aggregations

Params (com.cloudant.client.api.model.Params)6 Test (org.junit.jupiter.api.Test)6 Response (com.cloudant.client.api.model.Response)5 Attachment (com.cloudant.client.api.model.Attachment)2