@Test public void getSpecificityForwardsToMonarch() throws ComponentLookupException { when(this.monarchScorer.getSpecificity(this.patient)).thenReturn(this.spec); Assert.assertSame(this.spec, this.mocker.getComponentUnderTest().getSpecificity(this.patient)); Mockito.verifyZeroInteractions(this.omimScorer); }
@Override public PatientSpecificity getSpecificity(Patient patient) { PatientSpecificity spec = null; spec = this.monarchScorer.getSpecificity(patient); if (spec == null) { spec = this.omimScorer.getSpecificity(patient); } return spec; }
DefaultPatientSpecificityService implements PatientSpecificityService { @Override public PatientSpecificity getSpecificity(Patient patient) { PatientSpecificity spec = null; spec = this.monarchScorer.getSpecificity(patient); if (spec == null) { spec = this.omimScorer.getSpecificity(patient); } return spec; } }
DefaultPatientSpecificityService implements PatientSpecificityService { @Override public PatientSpecificity getSpecificity(Patient patient) { PatientSpecificity spec = null; spec = this.monarchScorer.getSpecificity(patient); if (spec == null) { spec = this.omimScorer.getSpecificity(patient); } return spec; }  }
DefaultPatientSpecificityService implements PatientSpecificityService { @Override public PatientSpecificity getSpecificity(Patient patient) { PatientSpecificity spec = null; spec = this.monarchScorer.getSpecificity(patient); if (spec == null) { spec = this.omimScorer.getSpecificity(patient); } return spec; }  @Override PatientSpecificity getSpecificity(Patient patient); @Override double getScore(Patient patient); }
DefaultPatientSpecificityService implements PatientSpecificityService { @Override public PatientSpecificity getSpecificity(Patient patient) { PatientSpecificity spec = null; spec = this.monarchScorer.getSpecificity(patient); if (spec == null) { spec = this.omimScorer.getSpecificity(patient); } return spec; }  @Override PatientSpecificity getSpecificity(Patient patient); @Override double getScore(Patient patient);  }