@Test public void deleteForwardsCalls() throws ComponentLookupException { when(this.repo.delete(this.patient)).thenReturn(true); Assert.assertTrue(this.mocker.getComponentUnderTest().delete(this.patient)); }
public boolean delete(Patient patient) { try { return this.internalService.delete(patient); } catch (Exception ex) { return false; } }
PatientDataScriptService implements ScriptService { public boolean delete(Patient patient) { try { return this.internalService.delete(patient); } catch (Exception ex) { return false; } } }
PatientDataScriptService implements ScriptService { public boolean delete(Patient patient) { try { return this.internalService.delete(patient); } catch (Exception ex) { return false; } }  }
PatientDataScriptService implements ScriptService { public boolean delete(Patient patient) { try { return this.internalService.delete(patient); } catch (Exception ex) { return false; } }  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 boolean delete(Patient patient) { try { return this.internalService.delete(patient); } catch (Exception ex) { return false; } }  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);  }