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);