@Test public void apply() { AffMatchOrganization organization = new AffMatchOrganization("ORG1"); organization.setShortName("MMCF"); List<String> names = function.apply(organization); assertEquals(1, names.size()); assertEquals(organization.getShortName(), names.get(0)); }
@Override public List<String> apply(AffMatchOrganization organization) { Preconditions.checkNotNull(organization); return ImmutableList.of(organization.getShortName()); }
GetOrgShortNameFunction implements Function<AffMatchOrganization, List<String>>, Serializable { @Override public List<String> apply(AffMatchOrganization organization) { Preconditions.checkNotNull(organization); return ImmutableList.of(organization.getShortName()); } }
GetOrgShortNameFunction implements Function<AffMatchOrganization, List<String>>, Serializable { @Override public List<String> apply(AffMatchOrganization organization) { Preconditions.checkNotNull(organization); return ImmutableList.of(organization.getShortName()); }  }
GetOrgShortNameFunction implements Function<AffMatchOrganization, List<String>>, Serializable { @Override public List<String> apply(AffMatchOrganization organization) { Preconditions.checkNotNull(organization); return ImmutableList.of(organization.getShortName()); }  @Override List<String> apply(AffMatchOrganization organization); }
GetOrgShortNameFunction implements Function<AffMatchOrganization, List<String>>, Serializable { @Override public List<String> apply(AffMatchOrganization organization) { Preconditions.checkNotNull(organization); return ImmutableList.of(organization.getShortName()); }  @Override List<String> apply(AffMatchOrganization organization);  }