@Test(expected = TrustLevelThresholdExceededException.class) public void testBuildBelowThreshold() throws Exception { DocumentToDataSet documentToDataset = buildDocumentToDataset("documentId", "datasetId", 0.4f); ActionBuilderModule<DocumentToDataSet, Relation> module = factory.instantiate(config); module.build(documentToDataset); }
@Override public ActionBuilderModule<DocumentToDataSet, Relation> instantiate(Configuration config) { return new DocumentToDataSetActionBuilderModule(provideTrustLevelThreshold(config)); }
DocumentToDataSetActionBuilderModuleFactory extends AbstractActionBuilderFactory<DocumentToDataSet, Relation> { @Override public ActionBuilderModule<DocumentToDataSet, Relation> instantiate(Configuration config) { return new DocumentToDataSetActionBuilderModule(provideTrustLevelThreshold(config)); } }
DocumentToDataSetActionBuilderModuleFactory extends AbstractActionBuilderFactory<DocumentToDataSet, Relation> { @Override public ActionBuilderModule<DocumentToDataSet, Relation> instantiate(Configuration config) { return new DocumentToDataSetActionBuilderModule(provideTrustLevelThreshold(config)); } DocumentToDataSetActionBuilderModuleFactory(); }
DocumentToDataSetActionBuilderModuleFactory extends AbstractActionBuilderFactory<DocumentToDataSet, Relation> { @Override public ActionBuilderModule<DocumentToDataSet, Relation> instantiate(Configuration config) { return new DocumentToDataSetActionBuilderModule(provideTrustLevelThreshold(config)); } DocumentToDataSetActionBuilderModuleFactory(); @Override ActionBuilderModule<DocumentToDataSet, Relation> instantiate(Configuration config); }
DocumentToDataSetActionBuilderModuleFactory extends AbstractActionBuilderFactory<DocumentToDataSet, Relation> { @Override public ActionBuilderModule<DocumentToDataSet, Relation> instantiate(Configuration config) { return new DocumentToDataSetActionBuilderModule(provideTrustLevelThreshold(config)); } DocumentToDataSetActionBuilderModuleFactory(); @Override ActionBuilderModule<DocumentToDataSet, Relation> instantiate(Configuration config);  }