HiPhivePriorityResult extends AbstractPriorityResult { public double getFishScore() { return fishScore; } HiPhivePriorityResult(int geneId, String geneSymbol, double score, List<PhenotypeTerm> queryPhenotypeTerms, List<GeneModelPhenotypeMatch> phenotypeEvidence, List<GeneModelPhenotypeMatch> ppiEvidence, double ppiScore, boolean candidateGeneMatch); @Override String getGeneSymbol(); @Override double getScore(); List<PhenotypeTerm> getQueryPhenotypeTerms(); List<GeneModelPhenotypeMatch> getPhenotypeEvidence(); List<GeneModelPhenotypeMatch> getPpiEvidence(); double getHumanScore(); double getMouseScore(); double getFishScore(); double getPpiScore(); boolean isCandidateGeneMatch(); @JsonIgnore String getPhenotypeEvidenceText(); @JsonIgnore @Override String getHTMLCode(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }
@Test public void testGetFishScoreIsZeroWithNoDiseaseEvidence() { assertThat(instance.getFishScore(), equalTo(0d)); }
@Test public void testGetFishScoreMatchesModelScore() { double modelScore = 1d; GeneModelPhenotypeMatch geneModel = stubGeneModelPhenotypeMatch(Organism.FISH, modelScore); List<GeneModelPhenotypeMatch> models = Arrays.asList(geneModel); instance = new HiPhivePriorityResult(geneId, geneSymbol, score, queryPhenotypeTerms, models, ppiEvidence, ppiScore, false); assertThat(instance.getFishScore(), equalTo(modelScore)); }