@Test public void apply() { AffMatchOrganization organization = new AffMatchOrganization("ORG1"); organization.setName("Mickey Mouse's Cheese Factory"); List<String> names = function.apply(organization); assertEquals(1, names.size()); assertEquals(organization.getName(), names.get(0)); }
@Override public List<String> apply(AffMatchOrganization organization) { Preconditions.checkNotNull(organization); return ImmutableList.of(organization.getName()); }
GetOrgNameFunction implements Function<AffMatchOrganization, List<String>>, Serializable { @Override public List<String> apply(AffMatchOrganization organization) { Preconditions.checkNotNull(organization); return ImmutableList.of(organization.getName()); } }
GetOrgNameFunction implements Function<AffMatchOrganization, List<String>>, Serializable { @Override public List<String> apply(AffMatchOrganization organization) { Preconditions.checkNotNull(organization); return ImmutableList.of(organization.getName()); }  }
GetOrgNameFunction implements Function<AffMatchOrganization, List<String>>, Serializable { @Override public List<String> apply(AffMatchOrganization organization) { Preconditions.checkNotNull(organization); return ImmutableList.of(organization.getName()); }  @Override List<String> apply(AffMatchOrganization organization); }
GetOrgNameFunction implements Function<AffMatchOrganization, List<String>>, Serializable { @Override public List<String> apply(AffMatchOrganization organization) { Preconditions.checkNotNull(organization); return ImmutableList.of(organization.getName()); }  @Override List<String> apply(AffMatchOrganization organization);  }