@Test public void testCreateRiskAllele() throws Exception { assertThat(associationAttributeService.createRiskAllele("rs345789-G", SNP)).isInstanceOf(RiskAllele.class); assertThat(associationAttributeService.createRiskAllele("rs345789-G", SNP)).extracting("riskAlleleName") .contains("rs345789-G"); assertThat(associationAttributeService.createRiskAllele("rs345789-G", SNP)).extracting("snp") .extracting("rsId") .contains("rs345612"); }
public RiskAllele createRiskAllele(String curatorEnteredRiskAllele, SingleNucleotidePolymorphism snp) { RiskAllele riskAllele = new RiskAllele(); riskAllele.setRiskAlleleName(StringProcessingService.tidy_curator_entered_string(curatorEnteredRiskAllele)); riskAllele.setSnp(snp); return riskAllele; }
AssociationAttributeService { public RiskAllele createRiskAllele(String curatorEnteredRiskAllele, SingleNucleotidePolymorphism snp) { RiskAllele riskAllele = new RiskAllele(); riskAllele.setRiskAlleleName(StringProcessingService.tidy_curator_entered_string(curatorEnteredRiskAllele)); riskAllele.setSnp(snp); return riskAllele; } }
AssociationAttributeService { public RiskAllele createRiskAllele(String curatorEnteredRiskAllele, SingleNucleotidePolymorphism snp) { RiskAllele riskAllele = new RiskAllele(); riskAllele.setRiskAlleleName(StringProcessingService.tidy_curator_entered_string(curatorEnteredRiskAllele)); riskAllele.setSnp(snp); return riskAllele; } @Autowired  AssociationAttributeService(EfoTraitRepository efoTraitRepository); }
AssociationAttributeService { public RiskAllele createRiskAllele(String curatorEnteredRiskAllele, SingleNucleotidePolymorphism snp) { RiskAllele riskAllele = new RiskAllele(); riskAllele.setRiskAlleleName(StringProcessingService.tidy_curator_entered_string(curatorEnteredRiskAllele)); riskAllele.setSnp(snp); return riskAllele; } @Autowired  AssociationAttributeService(EfoTraitRepository efoTraitRepository); Collection<Gene> createLocusGenes(String authorReportedGene, String delimiter); RiskAllele createRiskAllele(String curatorEnteredRiskAllele, SingleNucleotidePolymorphism snp); SingleNucleotidePolymorphism createSnp(String curatorEnteredSNP); Collection<EfoTrait> getEfoTraitsFromRepository(Collection<String> efoUris); }
AssociationAttributeService { public RiskAllele createRiskAllele(String curatorEnteredRiskAllele, SingleNucleotidePolymorphism snp) { RiskAllele riskAllele = new RiskAllele(); riskAllele.setRiskAlleleName(StringProcessingService.tidy_curator_entered_string(curatorEnteredRiskAllele)); riskAllele.setSnp(snp); return riskAllele; } @Autowired  AssociationAttributeService(EfoTraitRepository efoTraitRepository); Collection<Gene> createLocusGenes(String authorReportedGene, String delimiter); RiskAllele createRiskAllele(String curatorEnteredRiskAllele, SingleNucleotidePolymorphism snp); SingleNucleotidePolymorphism createSnp(String curatorEnteredSNP); Collection<EfoTrait> getEfoTraitsFromRepository(Collection<String> efoUris);  }