@Test public void testBuildEmptyClasses() throws Exception { String docId = "documentId"; ActionBuilderModule<DocumentToDocumentClasses, Result> module = factory.instantiate(config); List<AtomicAction<Result>> actions = module.build(DocumentToDocumentClasses.newBuilder().setDocumentId(docId).build()); 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);  }