@Test public void getEnrichmentTagApplier_ProperApplierFound() { EnrichmentTagApplier foundApplier = enrichmentTagApplierManager.getEnrichmentTagApplier(ENRICHMENT_TAG_TYPE_2); assertTrue(foundApplier == enrichmentTagApplier2); }
public EnrichmentTagApplier getEnrichmentTagApplier(String enrichmentTagType) { for (EnrichmentTagApplier enrichmentTagApplier : enrichmentTagAppliers) { if (enrichmentTagApplier.handlesEnrichmentTagType(enrichmentTagType)) { return enrichmentTagApplier; } } return null; }
EnrichmentTagApplierManager { public EnrichmentTagApplier getEnrichmentTagApplier(String enrichmentTagType) { for (EnrichmentTagApplier enrichmentTagApplier : enrichmentTagAppliers) { if (enrichmentTagApplier.handlesEnrichmentTagType(enrichmentTagType)) { return enrichmentTagApplier; } } return null; } }
EnrichmentTagApplierManager { public EnrichmentTagApplier getEnrichmentTagApplier(String enrichmentTagType) { for (EnrichmentTagApplier enrichmentTagApplier : enrichmentTagAppliers) { if (enrichmentTagApplier.handlesEnrichmentTagType(enrichmentTagType)) { return enrichmentTagApplier; } } return null; }  }
EnrichmentTagApplierManager { public EnrichmentTagApplier getEnrichmentTagApplier(String enrichmentTagType) { for (EnrichmentTagApplier enrichmentTagApplier : enrichmentTagAppliers) { if (enrichmentTagApplier.handlesEnrichmentTagType(enrichmentTagType)) { return enrichmentTagApplier; } } return null; }  EnrichmentTagApplier getEnrichmentTagApplier(String enrichmentTagType); @Autowired void setEnrichmentTagAppliers(List<EnrichmentTagApplier> enrichmentTagAppliers); }
EnrichmentTagApplierManager { public EnrichmentTagApplier getEnrichmentTagApplier(String enrichmentTagType) { for (EnrichmentTagApplier enrichmentTagApplier : enrichmentTagAppliers) { if (enrichmentTagApplier.handlesEnrichmentTagType(enrichmentTagType)) { return enrichmentTagApplier; } } return null; }  EnrichmentTagApplier getEnrichmentTagApplier(String enrichmentTagType); @Autowired void setEnrichmentTagAppliers(List<EnrichmentTagApplier> enrichmentTagAppliers);  }