@Test public void voteMatch_match_same_country_code() { affiliation.setCountryCode("pl"); organization.setCountryCode("pl"); assertTrue(voter.voteMatch(affiliation, organization)); }
@Override public boolean voteMatch(AffMatchAffiliation affiliation, AffMatchOrganization organization) { if (StringUtils.isEmpty(affiliation.getCountryCode()) || StringUtils.isEmpty(organization.getCountryCode())) { return true; } return affiliation.getCountryCode().equals(organization.getCountryCode()); }
CountryCodeLooseMatchVoter extends AbstractAffOrgMatchVoter { @Override public boolean voteMatch(AffMatchAffiliation affiliation, AffMatchOrganization organization) { if (StringUtils.isEmpty(affiliation.getCountryCode()) || StringUtils.isEmpty(organization.getCountryCode())) { return true; } return affiliation.getCountryCode().equals(organization.getCountryCode()); } }
CountryCodeLooseMatchVoter extends AbstractAffOrgMatchVoter { @Override public boolean voteMatch(AffMatchAffiliation affiliation, AffMatchOrganization organization) { if (StringUtils.isEmpty(affiliation.getCountryCode()) || StringUtils.isEmpty(organization.getCountryCode())) { return true; } return affiliation.getCountryCode().equals(organization.getCountryCode()); }  }
CountryCodeLooseMatchVoter extends AbstractAffOrgMatchVoter { @Override public boolean voteMatch(AffMatchAffiliation affiliation, AffMatchOrganization organization) { if (StringUtils.isEmpty(affiliation.getCountryCode()) || StringUtils.isEmpty(organization.getCountryCode())) { return true; } return affiliation.getCountryCode().equals(organization.getCountryCode()); }  @Override boolean voteMatch(AffMatchAffiliation affiliation, AffMatchOrganization organization); }
CountryCodeLooseMatchVoter extends AbstractAffOrgMatchVoter { @Override public boolean voteMatch(AffMatchAffiliation affiliation, AffMatchOrganization organization) { if (StringUtils.isEmpty(affiliation.getCountryCode()) || StringUtils.isEmpty(organization.getCountryCode())) { return true; } return affiliation.getCountryCode().equals(organization.getCountryCode()); }  @Override boolean voteMatch(AffMatchAffiliation affiliation, AffMatchOrganization organization);  }