@Test public void shouldDeleteRequisitionGroupToFacilityMapping() { repository.deleteMembersFor(facility); verify(requisitionGroupMemberMapper).deleteMembersFor(facility); }
public void deleteMembersFor(Facility facility) { mapper.deleteMembersFor(facility); }
RequisitionGroupMemberRepository { public void deleteMembersFor(Facility facility) { mapper.deleteMembersFor(facility); } }
RequisitionGroupMemberRepository { public void deleteMembersFor(Facility facility) { mapper.deleteMembersFor(facility); } @Autowired  RequisitionGroupMemberRepository(RequisitionGroupMemberMapper requisitionGroupMemberMapper); }
RequisitionGroupMemberRepository { public void deleteMembersFor(Facility facility) { mapper.deleteMembersFor(facility); } @Autowired  RequisitionGroupMemberRepository(RequisitionGroupMemberMapper requisitionGroupMemberMapper); void insert(RequisitionGroupMember requisitionGroupMember); List<Long> getRequisitionGroupProgramIdsForFacilityId(Long facilityId); RequisitionGroupMember getRequisitionGroupMemberForRequisitionGroupIdAndFacilityId(
    RequisitionGroup requisitionGroup, Facility facility); void update(RequisitionGroupMember requisitionGroupMember); void removeRequisitionGroupMember(RequisitionGroup requisitionGroup, Facility facility); List<RequisitionGroupMember> getAllRequisitionGroupMembersByFacility(Long facilityId); void updateMembersForVirtualFacilities(Facility parentFacility); void deleteMembersFor(Facility facility); List<RequisitionGroupMember> getMembersBy(Long requisitionGroupId); void deleteMembersForGroup(Long requisitionGroupId); }
RequisitionGroupMemberRepository { public void deleteMembersFor(Facility facility) { mapper.deleteMembersFor(facility); } @Autowired  RequisitionGroupMemberRepository(RequisitionGroupMemberMapper requisitionGroupMemberMapper); void insert(RequisitionGroupMember requisitionGroupMember); List<Long> getRequisitionGroupProgramIdsForFacilityId(Long facilityId); RequisitionGroupMember getRequisitionGroupMemberForRequisitionGroupIdAndFacilityId(
    RequisitionGroup requisitionGroup, Facility facility); void update(RequisitionGroupMember requisitionGroupMember); void removeRequisitionGroupMember(RequisitionGroup requisitionGroup, Facility facility); List<RequisitionGroupMember> getAllRequisitionGroupMembersByFacility(Long facilityId); void updateMembersForVirtualFacilities(Facility parentFacility); void deleteMembersFor(Facility facility); List<RequisitionGroupMember> getMembersBy(Long requisitionGroupId); void deleteMembersForGroup(Long requisitionGroupId);  }