@Test(expected = IllegalArgumentException.class) public void convert_null_project_id() { converter.convert(new ProjectToOrganization(null, orgId)); }
public AffMatchProjectOrganization convert(ProjectToOrganization projectOrganization) { Preconditions.checkNotNull(projectOrganization); Preconditions.checkArgument(StringUtils.isNotBlank(projectOrganization.getProjectId())); Preconditions.checkArgument(StringUtils.isNotBlank(projectOrganization.getOrganizationId())); return new AffMatchProjectOrganization(projectOrganization.getProjectId().toString(), projectOrganization.getOrganizationId().toString()); }
ProjectOrganizationConverter implements Serializable { public AffMatchProjectOrganization convert(ProjectToOrganization projectOrganization) { Preconditions.checkNotNull(projectOrganization); Preconditions.checkArgument(StringUtils.isNotBlank(projectOrganization.getProjectId())); Preconditions.checkArgument(StringUtils.isNotBlank(projectOrganization.getOrganizationId())); return new AffMatchProjectOrganization(projectOrganization.getProjectId().toString(), projectOrganization.getOrganizationId().toString()); } }
ProjectOrganizationConverter implements Serializable { public AffMatchProjectOrganization convert(ProjectToOrganization projectOrganization) { Preconditions.checkNotNull(projectOrganization); Preconditions.checkArgument(StringUtils.isNotBlank(projectOrganization.getProjectId())); Preconditions.checkArgument(StringUtils.isNotBlank(projectOrganization.getOrganizationId())); return new AffMatchProjectOrganization(projectOrganization.getProjectId().toString(), projectOrganization.getOrganizationId().toString()); }  }
ProjectOrganizationConverter implements Serializable { public AffMatchProjectOrganization convert(ProjectToOrganization projectOrganization) { Preconditions.checkNotNull(projectOrganization); Preconditions.checkArgument(StringUtils.isNotBlank(projectOrganization.getProjectId())); Preconditions.checkArgument(StringUtils.isNotBlank(projectOrganization.getOrganizationId())); return new AffMatchProjectOrganization(projectOrganization.getProjectId().toString(), projectOrganization.getOrganizationId().toString()); }  AffMatchProjectOrganization convert(ProjectToOrganization projectOrganization); }
ProjectOrganizationConverter implements Serializable { public AffMatchProjectOrganization convert(ProjectToOrganization projectOrganization) { Preconditions.checkNotNull(projectOrganization); Preconditions.checkArgument(StringUtils.isNotBlank(projectOrganization.getProjectId())); Preconditions.checkArgument(StringUtils.isNotBlank(projectOrganization.getOrganizationId())); return new AffMatchProjectOrganization(projectOrganization.getProjectId().toString(), projectOrganization.getOrganizationId().toString()); }  AffMatchProjectOrganization convert(ProjectToOrganization projectOrganization);  }