@Test public void test_Save_EmptyElements() { harvesterDao.writeMetaInfos(Collections.EMPTY_LIST); assertEquals(0, publisherConfig.getTargetDBConfig().get(0).getMongoConfig().connectToDB().getCollection("WebResourceMetaInfo").count()); }
public void writeMetaInfos (Collection<HarvesterRecord> records) { writeMetaInfos(records, "publisher-writeMetainfos-"+ Double.doubleToLongBits(Math.random() * 5000)); }
PublisherHarvesterDao { public void writeMetaInfos (Collection<HarvesterRecord> records) { writeMetaInfos(records, "publisher-writeMetainfos-"+ Double.doubleToLongBits(Math.random() * 5000)); } }
PublisherHarvesterDao { public void writeMetaInfos (Collection<HarvesterRecord> records) { writeMetaInfos(records, "publisher-writeMetainfos-"+ Double.doubleToLongBits(Math.random() * 5000)); } PublisherHarvesterDao(DBTargetConfig config); }
PublisherHarvesterDao { public void writeMetaInfos (Collection<HarvesterRecord> records) { writeMetaInfos(records, "publisher-writeMetainfos-"+ Double.doubleToLongBits(Math.random() * 5000)); } PublisherHarvesterDao(DBTargetConfig config); void writeMetaInfos(Collection<HarvesterRecord> records); void writeMetaInfos(Collection<HarvesterRecord> records, final String publishingBatchId); }
PublisherHarvesterDao { public void writeMetaInfos (Collection<HarvesterRecord> records) { writeMetaInfos(records, "publisher-writeMetainfos-"+ Double.doubleToLongBits(Math.random() * 5000)); } PublisherHarvesterDao(DBTargetConfig config); void writeMetaInfos(Collection<HarvesterRecord> records); void writeMetaInfos(Collection<HarvesterRecord> records, final String publishingBatchId);  }