use of org.jumpmind.symmetric.web.rest.model.BatchResults in project symmetric-ds by JumpMind.
the class RestServiceTest method buildBatchResults.
protected BatchResults buildBatchResults(RegistrationInfo registrationInfo, PullDataResults results) {
BatchResults batchResults = new BatchResults();
batchResults.setNodeId(registrationInfo.getNodeId());
for (Batch batch : results.getBatches()) {
batchResults.getBatchResults().add(new BatchResult(batch.getBatchId(), true));
}
return batchResults;
}
Aggregations