use of org.orcid.jaxb.model.record_rc4.WorkBulk in project ORCID-Source by ORCID.
the class WorksTest method createBulk.
private WorkBulk createBulk(int size, String extId) {
WorkBulk bulk = new WorkBulk();
Long time = System.currentTimeMillis();
for (int i = 0; i < size; i++) {
if (extId == null) {
bulk.getBulk().add(getWork("Work title #" + i + "-" + time, true, null));
} else {
bulk.getBulk().add(getWork("Work title #" + i + "-" + time, false, String.valueOf(time)));
}
}
return bulk;
}
Aggregations