Project p = new Project();
p.setProjectState(ProjectState.OPENED);
p.setProjectNumber("0001");
p.setProjectName("TestProject1");
DayPeriod dp = new DayPeriod();
Calendar cal = Calendar.getInstance();
cal.set(Calendar.DAY_OF_MONTH, 1);
cal.set(Calendar.MONTH, Calendar.JANUARY);
cal.set(Calendar.YEAR, 2005);
dp.setBegin(cal.getTime());
cal = Calendar.getInstance();
cal.set(Calendar.DAY_OF_MONTH, 1);
cal.set(Calendar.MONTH, Calendar.JANUARY);
cal.set(Calendar.YEAR, 2006);
dp.setEnd(cal.getTime());
p.setProjectPeriod(dp);
p.setBudget(new BigDecimal("1000.00").setScale(2, BigDecimal.ROUND_HALF_UP));
new_objs.add(p);
del_objs.push(p);
ProjectActivity pa = new ProjectActivity();
pa.setProject(p);
pa.setProjectActivityName("TestActivity1");
new_objs.add(pa);
del_objs.push(pa);
UserProjectActivity upa = new UserProjectActivity();
upa.setUser(user);
upa.setProjectActivity(pa);
upa.setBudget(new BigDecimal("1000.00").setScale(2, BigDecimal.ROUND_HALF_UP));
new_objs.add(upa);
del_objs.push(upa);
UserProjectActivityPrice price = new UserProjectActivityPrice();
price.setUserProjectActivity(upa);
price.setPrice(new BigDecimal("123.00").setScale(2, BigDecimal.ROUND_HALF_UP));
price.setPeriod(new DayPeriod());
upa.addPrice(price);
// create test data
WorkDay wd1 = new WorkDay();