private void runCommonEquals(Upload upload, Activity activity) { assertEquals(upload.getProjectId(), activity.getProjectId()); assertEquals(upload.getCompanyId(), activity.getCompanyId()); assertEquals(upload.getContent(), activity.getTarget()); assertEquals(upload.getType(), activity.getAttachType()); assertEquals(upload.getId(), activity.getAttachId()); }
private Upload getASampleUpload(Boolean deleted, int projectId) { Upload upload = new Upload(); upload.setId(id); upload.setProjectId(projectId); upload.setCompanyId(companyId); upload.setDeleted(deleted); upload.setContent(content); return upload; }