use of org.nuxeo.drive.service.FileSystemChangeSummary in project nuxeo-drive-server by nuxeo.
the class TestGetChangeSummaryMultiRepo method getChangeSummary.
protected FileSystemChangeSummary getChangeSummary() throws Exception {
// Wait 1 second as the mock change finder relies on steps of 1 second
Thread.sleep(1000);
Blob docChangeSummaryJSON = (Blob) clientSession.newRequest(NuxeoDriveGetChangeSummary.ID).set("lastSyncDate", lastSyncDate).set("lastSyncActiveRootDefinitions", lastSyncActiveRoots).execute();
assertNotNull(docChangeSummaryJSON);
FileSystemChangeSummary changeSummary = mapper.readValue(docChangeSummaryJSON.getStream(), FileSystemChangeSummaryImpl.class);
assertNotNull(changeSummary);
lastSyncDate = changeSummary.getSyncDate();
lastSyncActiveRoots = changeSummary.getActiveSynchronizationRootDefinitions();
return changeSummary;
}
Aggregations