@Test public void getAllForwardsCalls() throws ComponentLookupException { Iterator<Patient> it = Collections.singletonList(this.patient).iterator(); when(this.repo.getAll()).thenReturn(it); Assert.assertSame(it, this.mocker.getComponentUnderTest().getAll()); }
public Iterator<Patient> getAll() { return this.internalService.getAll(); }
PatientDataScriptService implements ScriptService { public Iterator<Patient> getAll() { return this.internalService.getAll(); } }
PatientDataScriptService implements ScriptService { public Iterator<Patient> getAll() { return this.internalService.getAll(); }  }
PatientDataScriptService implements ScriptService { public Iterator<Patient> getAll() { return this.internalService.getAll(); }  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 Iterator<Patient> getAll() { return this.internalService.getAll(); }  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);  }