volunteer.setTypeVolunteer("Accepted");
volunteer.setYearApplyingFor(1900);
voCtrl.create(volunteer);
VolunteerApplication application = new VolunteerApplication();
List<Program> programs = programCtrl.getPrograms();
assertFalse("No programs, must have at leat one for this test.",
programs.size() == 0);
Program program = programs.get(0);
application.setProgram(program);
application.setAcceptanceFeeReceived(new Date());
volunteer.setApplication(application);
for (int i=1; i < 5; i++) {
Contribution contrib = new Contribution();
contrib.setApplication(application);
contrib.setContributionAmount(new BigDecimal(i));
contrib.setContributionValue(new BigDecimal(i*8));
contrib.setCurrency("TST");
contrib.setDateContribution(new Date());
if ((i%3) == 0)
contrib.setGiftAidable(true);
contrib.setIdContribution(new Long(i));
if (i == 1)
contrib.setInitialFee(true);
if (i < 3 )
contrib.setMeansOfPayment("Cheque");
else
contrib.setMeansOfPayment("JustGiving");
contrib.setPayer(getName());
contrib.setReference(Integer.toString(i));
application.addContribution(contrib);
}
VolunteerDetailsFundraisingXmlReport instance =
new VolunteerDetailsFundraisingXmlReport(volunteer);