Пример #1
0
  public void testGetSimpleProject() throws DAOException {

    projectService.create(project);
    Project projectTest = projectService.getSimpleProject(project.getId());
    projectService.delete(project);

    assertNotNull(projectTest);
  }
Пример #2
0
  private void createProjectWithMembers() throws DAOException {

    for (Member member : members) {
      memberService.create(member);
    }
    project.setMembers(members);

    Long idProject = projectService.create(project);
    project.setId(idProject);
  }