use of com.cloudant.client.api.model.ChangesResult.Row in project java-cloudant by cloudant.
the class ChangeNotificationsTest method changes_normalFeed.
@Test
public void changes_normalFeed() {
db.save(new Foo());
ChangesResult changes = db.changes().includeDocs(true).limit(1).getChanges();
List<ChangesResult.Row> rows = changes.getResults();
for (Row row : rows) {
List<ChangesResult.Row.Rev> revs = row.getChanges();
String docId = row.getId();
JsonObject doc = row.getDoc();
assertNotNull(revs);
assertNotNull(docId);
assertNotNull(doc);
}
assertThat(rows.size(), is(1));
}
Aggregations