// upa.setPrise(new BigDecimal("200.50"));
upa.setBudget(new BigDecimal("20.00"));
objects.add(upa);
to_delete.add(0, upa);
daSrv.persistChanges(objects, null, null);
AdminService admSrv = configSrv.getAdminService();
List<UserProjectActivity> upas = admSrv.getUserProjectActivities(user);
assertEquals("Wrong number of user project activities: ", 1, upas.size());
assertEquals("Wrong user project activity: ", upa, upas.get(0));
// assertEquals("Wrong prise: ", upa.getPrise(), upas.get(0).getPrise());
// change data
// upa.setPrise(new BigDecimal("340.20"));
List<AbstractDomainObject> changes = new ArrayList<AbstractDomainObject>();
changes.add(upa);
daSrv.persistChanges(null, changes, null);
upas = admSrv.getUserProjectActivities(user);
assertEquals("Wrong number of user project activities: ", 1, upas.size());
assertEquals("Wrong user project activity: ", upa, upas.get(0));
// assertEquals("Wrong prise: ", upa.getPrise(), upas.get(0).getPrise());
// delete data
daSrv.persistChanges(null, null, to_delete);
upas = admSrv.getUserProjectActivities(user);
assertEquals("Wrong number of user project activities: ", 0, upas.size());
LOGGER.info("persistChanges finished");
}