@Test(expected = IllegalArgumentException.class) public void convert_NULL_DOC_ID() { converter.convert(new DocumentToProject(null, projectId)); }
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);  }