use of org.activityinfo.legacy.shared.command.UpdateMonthlyReports in project activityinfo by bedatadriven.
the class MonthlyReportsTest method authorizedByEditAll.
@Test
public void authorizedByEditAll() {
// bavon: viewall AND editall
setUser(2);
ArrayList<UpdateMonthlyReports.Change> changes = new ArrayList<UpdateMonthlyReports.Change>();
changes.add(new UpdateMonthlyReports.Change(6, new Month(2009, 1), 45.0));
changes.add(new UpdateMonthlyReports.Change(6, new Month(2009, 3), 22.0));
execute(new UpdateMonthlyReports(6, changes));
}
use of org.activityinfo.legacy.shared.command.UpdateMonthlyReports in project activityinfo by bedatadriven.
the class MonthlyReportsTest method authorizedByEdit.
@Test
public void authorizedByEdit() {
// pacifique, only edit
setUser(21);
ArrayList<UpdateMonthlyReports.Change> changes = new ArrayList<UpdateMonthlyReports.Change>();
changes.add(new UpdateMonthlyReports.Change(6, new Month(2009, 1), 45.0));
execute(new UpdateMonthlyReports(6, changes));
}
Aggregations