@Test public void testOneInUnspecifiedRegion() { recipient1.setRegion(Region.SOUTHLAND.toString()); recipient2.setRegion(Region.UNSPECIFIED.toString()); getListOfPotentialRecipients(); assertEquals(recipient1, eligibleClients.get(0)); }
public static List<Client> getListOfPotentialRecipients(DonatedOrgan donatedOrgan, Iterable<TransplantRequest> transplantRequests) { List<Client> potentialMatches = new ArrayList<>(); for (TransplantRequest transplantRequest : getListOfPotentialTransplants(donatedOrgan, transplantRequests)) { potentialMatches.add(transplantRequest.getClient()); } return potentialMatches; }
MatchOrganToRecipients { public static List<Client> getListOfPotentialRecipients(DonatedOrgan donatedOrgan, Iterable<TransplantRequest> transplantRequests) { List<Client> potentialMatches = new ArrayList<>(); for (TransplantRequest transplantRequest : getListOfPotentialTransplants(donatedOrgan, transplantRequests)) { potentialMatches.add(transplantRequest.getClient()); } return potentialMatches; } }
MatchOrganToRecipients { public static List<Client> getListOfPotentialRecipients(DonatedOrgan donatedOrgan, Iterable<TransplantRequest> transplantRequests) { List<Client> potentialMatches = new ArrayList<>(); for (TransplantRequest transplantRequest : getListOfPotentialTransplants(donatedOrgan, transplantRequests)) { potentialMatches.add(transplantRequest.getClient()); } return potentialMatches; } private  MatchOrganToRecipients(); }
MatchOrganToRecipients { public static List<Client> getListOfPotentialRecipients(DonatedOrgan donatedOrgan, Iterable<TransplantRequest> transplantRequests) { List<Client> potentialMatches = new ArrayList<>(); for (TransplantRequest transplantRequest : getListOfPotentialTransplants(donatedOrgan, transplantRequests)) { potentialMatches.add(transplantRequest.getClient()); } return potentialMatches; } private  MatchOrganToRecipients(); static List<Client> getListOfPotentialRecipients(DonatedOrgan donatedOrgan,
            Iterable<TransplantRequest> transplantRequests); static List<TransplantRequest> getListOfPotentialTransplants(DonatedOrgan donatedOrgan,
            Iterable<TransplantRequest> transplantRequests); }
MatchOrganToRecipients { public static List<Client> getListOfPotentialRecipients(DonatedOrgan donatedOrgan, Iterable<TransplantRequest> transplantRequests) { List<Client> potentialMatches = new ArrayList<>(); for (TransplantRequest transplantRequest : getListOfPotentialTransplants(donatedOrgan, transplantRequests)) { potentialMatches.add(transplantRequest.getClient()); } return potentialMatches; } private  MatchOrganToRecipients(); static List<Client> getListOfPotentialRecipients(DonatedOrgan donatedOrgan,
            Iterable<TransplantRequest> transplantRequests); static List<TransplantRequest> getListOfPotentialTransplants(DonatedOrgan donatedOrgan,
            Iterable<TransplantRequest> transplantRequests);  }