@Test public void testBuildBelowThreshold() throws Exception { String docId = "docId"; float confidenceLevel = 0.4f; ActionBuilderModule<DocumentToDocumentClasses, Result> module = factory.instantiate(config); List<AtomicAction<Result>> actions = module.build(buildDocumentToDocumentClasses(docId, confidenceLevel)); assertNotNull(actions); assertEquals(0, actions.size()); }
@Override public ActionBuilderModule<DocumentToDocumentClasses, Result> instantiate(Configuration config) { return new DocumentToDocumentClassesActionBuilderModule(provideTrustLevelThreshold(config)); }
DocumentToDocumentClassesActionBuilderModuleFactory extends AbstractActionBuilderFactory<DocumentToDocumentClasses, Result> { @Override public ActionBuilderModule<DocumentToDocumentClasses, Result> instantiate(Configuration config) { return new DocumentToDocumentClassesActionBuilderModule(provideTrustLevelThreshold(config)); } }
DocumentToDocumentClassesActionBuilderModuleFactory extends AbstractActionBuilderFactory<DocumentToDocumentClasses, Result> { @Override public ActionBuilderModule<DocumentToDocumentClasses, Result> instantiate(Configuration config) { return new DocumentToDocumentClassesActionBuilderModule(provideTrustLevelThreshold(config)); } DocumentToDocumentClassesActionBuilderModuleFactory(); }
DocumentToDocumentClassesActionBuilderModuleFactory extends AbstractActionBuilderFactory<DocumentToDocumentClasses, Result> { @Override public ActionBuilderModule<DocumentToDocumentClasses, Result> instantiate(Configuration config) { return new DocumentToDocumentClassesActionBuilderModule(provideTrustLevelThreshold(config)); } DocumentToDocumentClassesActionBuilderModuleFactory(); @Override ActionBuilderModule<DocumentToDocumentClasses, Result> instantiate(Configuration config); }
DocumentToDocumentClassesActionBuilderModuleFactory extends AbstractActionBuilderFactory<DocumentToDocumentClasses, Result> { @Override public ActionBuilderModule<DocumentToDocumentClasses, Result> instantiate(Configuration config) { return new DocumentToDocumentClassesActionBuilderModule(provideTrustLevelThreshold(config)); } DocumentToDocumentClassesActionBuilderModuleFactory(); @Override ActionBuilderModule<DocumentToDocumentClasses, Result> instantiate(Configuration config);  }