@Test public void testBuildEmptyCitations() throws Exception { ActionBuilderModule<Citations, Result> module = factory.instantiate(config); List<AtomicAction<Result>> actions = module.build( Citations.newBuilder().setCitations(Collections.emptyList()).setDocumentId(docId).build()); assertNotNull(actions); assertEquals(0, actions.size()); }
@Override public ActionBuilderModule<Citations, Result> instantiate(Configuration config) { return new CitationActionBuilderModule(provideTrustLevelThreshold(config)); }
CitationsActionBuilderModuleFactory extends AbstractActionBuilderFactory<Citations, Result> { @Override public ActionBuilderModule<Citations, Result> instantiate(Configuration config) { return new CitationActionBuilderModule(provideTrustLevelThreshold(config)); } }
CitationsActionBuilderModuleFactory extends AbstractActionBuilderFactory<Citations, Result> { @Override public ActionBuilderModule<Citations, Result> instantiate(Configuration config) { return new CitationActionBuilderModule(provideTrustLevelThreshold(config)); } CitationsActionBuilderModuleFactory(); }
CitationsActionBuilderModuleFactory extends AbstractActionBuilderFactory<Citations, Result> { @Override public ActionBuilderModule<Citations, Result> instantiate(Configuration config) { return new CitationActionBuilderModule(provideTrustLevelThreshold(config)); } CitationsActionBuilderModuleFactory(); @Override ActionBuilderModule<Citations, Result> instantiate(Configuration config); }
CitationsActionBuilderModuleFactory extends AbstractActionBuilderFactory<Citations, Result> { @Override public ActionBuilderModule<Citations, Result> instantiate(Configuration config) { return new CitationActionBuilderModule(provideTrustLevelThreshold(config)); } CitationsActionBuilderModuleFactory(); @Override ActionBuilderModule<Citations, Result> instantiate(Configuration config);  }