@Test public void convert() { DocumentToProject documentProject = new DocumentToProject(documentId, projectId); AffMatchDocumentProject retAffMatchDocProj = converter.convert(documentProject); assertEquals(new AffMatchDocumentProject(documentId, projectId, 1f), retAffMatchDocProj); }
public AffMatchDocumentProject convert(DocumentToProject documentProject) { Preconditions.checkNotNull(documentProject); Preconditions.checkArgument(StringUtils.isNotBlank(documentProject.getDocumentId())); Preconditions.checkArgument(StringUtils.isNotBlank(documentProject.getProjectId())); return new AffMatchDocumentProject(documentProject.getDocumentId().toString() , documentProject.getProjectId().toString(), 1f); }
DocumentProjectConverter implements Serializable { public AffMatchDocumentProject convert(DocumentToProject documentProject) { Preconditions.checkNotNull(documentProject); Preconditions.checkArgument(StringUtils.isNotBlank(documentProject.getDocumentId())); Preconditions.checkArgument(StringUtils.isNotBlank(documentProject.getProjectId())); return new AffMatchDocumentProject(documentProject.getDocumentId().toString() , documentProject.getProjectId().toString(), 1f); } }
DocumentProjectConverter implements Serializable { public AffMatchDocumentProject convert(DocumentToProject documentProject) { Preconditions.checkNotNull(documentProject); Preconditions.checkArgument(StringUtils.isNotBlank(documentProject.getDocumentId())); Preconditions.checkArgument(StringUtils.isNotBlank(documentProject.getProjectId())); return new AffMatchDocumentProject(documentProject.getDocumentId().toString() , documentProject.getProjectId().toString(), 1f); }  }
DocumentProjectConverter implements Serializable { public AffMatchDocumentProject convert(DocumentToProject documentProject) { Preconditions.checkNotNull(documentProject); Preconditions.checkArgument(StringUtils.isNotBlank(documentProject.getDocumentId())); Preconditions.checkArgument(StringUtils.isNotBlank(documentProject.getProjectId())); return new AffMatchDocumentProject(documentProject.getDocumentId().toString() , documentProject.getProjectId().toString(), 1f); }  AffMatchDocumentProject convert(DocumentToProject documentProject); }
DocumentProjectConverter implements Serializable { public AffMatchDocumentProject convert(DocumentToProject documentProject) { Preconditions.checkNotNull(documentProject); Preconditions.checkArgument(StringUtils.isNotBlank(documentProject.getDocumentId())); Preconditions.checkArgument(StringUtils.isNotBlank(documentProject.getProjectId())); return new AffMatchDocumentProject(documentProject.getDocumentId().toString() , documentProject.getProjectId().toString(), 1f); }  AffMatchDocumentProject convert(DocumentToProject documentProject);  }