@Test(expected = TrustLevelThresholdExceededException.class) public void testBuildBelowThreshold() throws Exception { DocumentToProject documentToProject = buildDocumentToProject("documentId", "projectId", 0.4f); ActionBuilderModule<DocumentToProject, Relation> module = factory.instantiate(config); module.build(documentToProject); }
@Override public ActionBuilderModule<DocumentToProject, Relation> instantiate(Configuration config) { return new DocumentToProjectActionBuilderModule(provideTrustLevelThreshold(config)); }
DocumentToProjectActionBuilderModuleFactory extends AbstractActionBuilderFactory<DocumentToProject, Relation> { @Override public ActionBuilderModule<DocumentToProject, Relation> instantiate(Configuration config) { return new DocumentToProjectActionBuilderModule(provideTrustLevelThreshold(config)); } }
DocumentToProjectActionBuilderModuleFactory extends AbstractActionBuilderFactory<DocumentToProject, Relation> { @Override public ActionBuilderModule<DocumentToProject, Relation> instantiate(Configuration config) { return new DocumentToProjectActionBuilderModule(provideTrustLevelThreshold(config)); } DocumentToProjectActionBuilderModuleFactory(); }
DocumentToProjectActionBuilderModuleFactory extends AbstractActionBuilderFactory<DocumentToProject, Relation> { @Override public ActionBuilderModule<DocumentToProject, Relation> instantiate(Configuration config) { return new DocumentToProjectActionBuilderModule(provideTrustLevelThreshold(config)); } DocumentToProjectActionBuilderModuleFactory(); @Override ActionBuilderModule<DocumentToProject, Relation> instantiate(Configuration config); }
DocumentToProjectActionBuilderModuleFactory extends AbstractActionBuilderFactory<DocumentToProject, Relation> { @Override public ActionBuilderModule<DocumentToProject, Relation> instantiate(Configuration config) { return new DocumentToProjectActionBuilderModule(provideTrustLevelThreshold(config)); } DocumentToProjectActionBuilderModuleFactory(); @Override ActionBuilderModule<DocumentToProject, Relation> instantiate(Configuration config);  }