@Test public void deleteFamilyForwardsCalls() throws ComponentLookupException { when(this.tools.deleteFamily("FAM0123456", true)).thenReturn(true); Assert.assertTrue(this.mocker.getComponentUnderTest().deleteFamily(this.family.getId(), true)); }
public boolean deleteFamily(String familyId, boolean deleteAllMembers) { return this.familyTools.deleteFamily(familyId, deleteAllMembers); }
FamilyScriptService implements ScriptService { public boolean deleteFamily(String familyId, boolean deleteAllMembers) { return this.familyTools.deleteFamily(familyId, deleteAllMembers); } }
FamilyScriptService implements ScriptService { public boolean deleteFamily(String familyId, boolean deleteAllMembers) { return this.familyTools.deleteFamily(familyId, deleteAllMembers); }  }
FamilyScriptService implements ScriptService { public boolean deleteFamily(String familyId, boolean deleteAllMembers) { return this.familyTools.deleteFamily(familyId, deleteAllMembers); }  Family create(); Family createFamily(); Family get(String id); Family getFamilyById(String familyId); Pedigree getPedigreeForFamily(String familyId); Family getFamilyForPatient(String patientId); Pedigree getPedigreeForPatient(String patientId); boolean removeMember(String patientId); boolean addMember(String patientId, String familyId); boolean delete(Family family); boolean deleteFamily(String familyId, boolean deleteAllMembers); boolean canDeleteFamily(String familyId, boolean deleteAllMembers); }
FamilyScriptService implements ScriptService { public boolean deleteFamily(String familyId, boolean deleteAllMembers) { return this.familyTools.deleteFamily(familyId, deleteAllMembers); }  Family create(); Family createFamily(); Family get(String id); Family getFamilyById(String familyId); Pedigree getPedigreeForFamily(String familyId); Family getFamilyForPatient(String patientId); Pedigree getPedigreeForPatient(String patientId); boolean removeMember(String patientId); boolean addMember(String patientId, String familyId); boolean delete(Family family); boolean deleteFamily(String familyId, boolean deleteAllMembers); boolean canDeleteFamily(String familyId, boolean deleteAllMembers);  }