@Test public void getWithReferenceForwardsCalls() throws ComponentLookupException { when(this.repo.get(this.patientReference)).thenReturn(this.patient); Assert.assertSame(this.patient, this.mocker.getComponentUnderTest().get(this.patientReference)); }
public Patient get(DocumentReference reference) { try { return this.internalService.get(reference); } catch (SecurityException | IllegalArgumentException ex) { return null; } }
PatientDataScriptService implements ScriptService { public Patient get(DocumentReference reference) { try { return this.internalService.get(reference); } catch (SecurityException | IllegalArgumentException ex) { return null; } } }
PatientDataScriptService implements ScriptService { public Patient get(DocumentReference reference) { try { return this.internalService.get(reference); } catch (SecurityException | IllegalArgumentException ex) { return null; } }  }
PatientDataScriptService implements ScriptService { public Patient get(DocumentReference reference) { try { return this.internalService.get(reference); } catch (SecurityException | IllegalArgumentException ex) { return null; } }  Patient get(DocumentReference reference); Patient get(String id); @Deprecated Patient getPatientById(String id); Patient getByName(String name); Patient getPatientByExternalId(String externalId); Iterator<Patient> getAll(); @Deprecated Patient createNewPatient(); Patient create(); boolean delete(Patient patient); }
PatientDataScriptService implements ScriptService { public Patient get(DocumentReference reference) { try { return this.internalService.get(reference); } catch (SecurityException | IllegalArgumentException ex) { return null; } }  Patient get(DocumentReference reference); Patient get(String id); @Deprecated Patient getPatientById(String id); Patient getByName(String name); Patient getPatientByExternalId(String externalId); Iterator<Patient> getAll(); @Deprecated Patient createNewPatient(); Patient create(); boolean delete(Patient patient);  }