use of org.activityinfo.legacy.shared.model.ProjectDTO in project activityinfo by bedatadriven.
the class ProjectTest method updateProject.
@Test
public void updateProject() {
setUser(1);
SchemaDTO schema = execute(new GetSchema());
ProjectDTO project = schema.getProjectById(2);
project.setName("RRMP II");
project.setDescription("RRMP The Next Generation");
execute(RequestChange.update(project, "name", "description"));
schema = execute(new GetSchema());
assertThat(schema.getProjectById(2).getName(), equalTo("RRMP II"));
assertThat(schema.getProjectById(2).getDescription(), equalTo("RRMP The Next Generation"));
project.setName("RRMP III");
project.setDescription(null);
execute(RequestChange.update(project, "name", "description"));
}
Aggregations