@Test public void testBuildEmptyConcepts() throws Exception { String docId = "documentId"; ActionBuilderModule<DocumentToConceptIds, Result> module = factory.instantiate(config); List<AtomicAction<Result>> actions = module.build( DocumentToConceptIds.newBuilder().setConcepts(Collections.emptyList()).setDocumentId(docId).build()); assertNotNull(actions); assertEquals(0, actions.size()); }
@Override public ActionBuilderModule<DocumentToConceptIds, Result> instantiate(Configuration config) { return new DocumentToPdbActionBuilderModule(provideTrustLevelThreshold(config), config.get(EXPORT_PDB_URL_ROOT)); }
DocumentToPdbActionBuilderModuleFactory extends AbstractActionBuilderFactory<DocumentToConceptIds, Result> { @Override public ActionBuilderModule<DocumentToConceptIds, Result> instantiate(Configuration config) { return new DocumentToPdbActionBuilderModule(provideTrustLevelThreshold(config), config.get(EXPORT_PDB_URL_ROOT)); } }
DocumentToPdbActionBuilderModuleFactory extends AbstractActionBuilderFactory<DocumentToConceptIds, Result> { @Override public ActionBuilderModule<DocumentToConceptIds, Result> instantiate(Configuration config) { return new DocumentToPdbActionBuilderModule(provideTrustLevelThreshold(config), config.get(EXPORT_PDB_URL_ROOT)); } DocumentToPdbActionBuilderModuleFactory(); }
DocumentToPdbActionBuilderModuleFactory extends AbstractActionBuilderFactory<DocumentToConceptIds, Result> { @Override public ActionBuilderModule<DocumentToConceptIds, Result> instantiate(Configuration config) { return new DocumentToPdbActionBuilderModule(provideTrustLevelThreshold(config), config.get(EXPORT_PDB_URL_ROOT)); } DocumentToPdbActionBuilderModuleFactory(); @Override ActionBuilderModule<DocumentToConceptIds, Result> instantiate(Configuration config); }
DocumentToPdbActionBuilderModuleFactory extends AbstractActionBuilderFactory<DocumentToConceptIds, Result> { @Override public ActionBuilderModule<DocumentToConceptIds, Result> instantiate(Configuration config) { return new DocumentToPdbActionBuilderModule(provideTrustLevelThreshold(config), config.get(EXPORT_PDB_URL_ROOT)); } DocumentToPdbActionBuilderModuleFactory(); @Override ActionBuilderModule<DocumentToConceptIds, Result> instantiate(Configuration config); static final String EXPORT_PDB_URL_ROOT; static final String SITENAME; static final String CLASS; static final String SCHEME; }