SimpleGeneFilterRunner implements GeneFilterRunner { @Override public List<Gene> run(GeneFilter filter, List<Gene> genes) { for (Gene gene : genes) { if (gene.passedFilters()) { runFilterAndAddResult(filter, gene); } } return genes; }  @Override List<Gene> run(GeneFilter filter, List<Gene> genes);  }
@Test public void testRunMultipleFiltersOverGenes() { assertVariantsUnfilteredAndDoNotPassFilter(genes, filters); filters.forEach(filter -> instance.run(filter, genes)); assertFilterStatus(passGene, filters, FilterStatus.PASSED); assertFilterStatus(failGene, filters, FilterStatus.FAILED); }
@Test public void testRunSingleFilterOverGenes() { assertVariantsUnfilteredAndDoNotPassFilter(genes, filters); instance.run(inheritanceFilter, genes); assertFilterStatus(passGene, filters, FilterStatus.PASSED); assertFilterStatus(failGene, filters, FilterStatus.FAILED); }