@Test public void convert() { AffMatchProjectOrganization result = converter.convert(new ProjectToOrganization(projId, orgId)); assertEquals(projId, result.getProjectId()); assertEquals(orgId, result.getOrganizationId()); }
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);  }