public void testUpdateProject() {
// fetching the first project
Set<Project> projects = service.getAllProjects();
Iterator<Project> iterator = projects.iterator();
if (iterator.hasNext()) {
Project project = iterator.next();
// change & save project
project.setDescription("Scrum to touch");
project.setName("Scrum-it reloaded");
service.updateProject(project);
// search project via id
Project newProject = service.findProjectById(project.getId());
// check the description and name
assertEquals(newProject.getDescription(), project.getDescription());
assertEquals(newProject.getName(), project.getName());
}
}