@Test(expected=RuntimeException.class) public void testBuildWithoutRootUrl() throws Exception { String docId = "documentId"; String pdbId = "pdbId"; float confidenceLevel = 1f; config.unset(EXPORT_PDB_URL_ROOT); ActionBuilderModule<DocumentToConceptIds, Result> module = factory.instantiate(config); module.build(buildDocumentToConceptIds(docId, pdbId, confidenceLevel)); }
@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; }