@Test(expected = TrustLevelThresholdExceededException.class) public void testBuildBelowThreshold() throws Exception { MatchedOrganizationWithProvenance matchedOrgBelowThreshold = buildMatchedOrganization("documentId", "organizationId", 0.4f, "affmatch"); ActionBuilderModule<MatchedOrganizationWithProvenance, Relation> module = factory.instantiate(config); module.build(matchedOrgBelowThreshold); }
@Override public ActionBuilderModule<MatchedOrganizationWithProvenance, Relation> instantiate(Configuration config) { return new MatchedOrganizationActionBuilderModule(provideTrustLevelThreshold(config)); }
MatchedOrganizationActionBuilderModuleFactory extends AbstractActionBuilderFactory<MatchedOrganizationWithProvenance, Relation> { @Override public ActionBuilderModule<MatchedOrganizationWithProvenance, Relation> instantiate(Configuration config) { return new MatchedOrganizationActionBuilderModule(provideTrustLevelThreshold(config)); } }
MatchedOrganizationActionBuilderModuleFactory extends AbstractActionBuilderFactory<MatchedOrganizationWithProvenance, Relation> { @Override public ActionBuilderModule<MatchedOrganizationWithProvenance, Relation> instantiate(Configuration config) { return new MatchedOrganizationActionBuilderModule(provideTrustLevelThreshold(config)); } MatchedOrganizationActionBuilderModuleFactory(); }
MatchedOrganizationActionBuilderModuleFactory extends AbstractActionBuilderFactory<MatchedOrganizationWithProvenance, Relation> { @Override public ActionBuilderModule<MatchedOrganizationWithProvenance, Relation> instantiate(Configuration config) { return new MatchedOrganizationActionBuilderModule(provideTrustLevelThreshold(config)); } MatchedOrganizationActionBuilderModuleFactory(); @Override ActionBuilderModule<MatchedOrganizationWithProvenance, Relation> instantiate(Configuration config); }
MatchedOrganizationActionBuilderModuleFactory extends AbstractActionBuilderFactory<MatchedOrganizationWithProvenance, Relation> { @Override public ActionBuilderModule<MatchedOrganizationWithProvenance, Relation> instantiate(Configuration config) { return new MatchedOrganizationActionBuilderModule(provideTrustLevelThreshold(config)); } MatchedOrganizationActionBuilderModuleFactory(); @Override ActionBuilderModule<MatchedOrganizationWithProvenance, Relation> instantiate(Configuration config);  }