@Test public void getScoreForwardsToOmimWhenMonarchScorerUnavailable() throws ComponentLookupException { when(this.monarchScorer.getScore(this.patient)).thenReturn(-1.0); when(this.omimScorer.getScore(this.patient)).thenReturn(0.25); double score = this.mocker.getComponentUnderTest().getScore(this.patient); Assert.assertEquals(0.25, score, 0.0); }
@Override public double getScore(Patient patient) { double score = -1; score = this.monarchScorer.getScore(patient); if (score == -1) { score = this.omimScorer.getScore(patient); } return score; }
DefaultPatientSpecificityService implements PatientSpecificityService { @Override public double getScore(Patient patient) { double score = -1; score = this.monarchScorer.getScore(patient); if (score == -1) { score = this.omimScorer.getScore(patient); } return score; } }
DefaultPatientSpecificityService implements PatientSpecificityService { @Override public double getScore(Patient patient) { double score = -1; score = this.monarchScorer.getScore(patient); if (score == -1) { score = this.omimScorer.getScore(patient); } return score; }  }
DefaultPatientSpecificityService implements PatientSpecificityService { @Override public double getScore(Patient patient) { double score = -1; score = this.monarchScorer.getScore(patient); if (score == -1) { score = this.omimScorer.getScore(patient); } return score; }  @Override PatientSpecificity getSpecificity(Patient patient); @Override double getScore(Patient patient); }
DefaultPatientSpecificityService implements PatientSpecificityService { @Override public double getScore(Patient patient) { double score = -1; score = this.monarchScorer.getScore(patient); if (score == -1) { score = this.omimScorer.getScore(patient); } return score; }  @Override PatientSpecificity getSpecificity(Patient patient); @Override double getScore(Patient patient);  }