use of org.mifos.application.meeting.business.MeetingBO in project head by mifos.
the class SavingsTestHelper method createCenter.
public CenterBO createCenter() {
MeetingBO meeting = TestObjectFactory.getNewMeetingForToday(MONTHLY, EVERY_SECOND_MONTH, CUSTOMER_MEETING);
meeting.setMeetingStartDate(new Date());
meeting.getMeetingDetails().getMeetingRecurrence().setDayNumber(new Short("1"));
TestObjectFactory.createMeeting(meeting);
return TestObjectFactory.createWeeklyFeeCenter("Center_Active_test", meeting);
}
use of org.mifos.application.meeting.business.MeetingBO in project head by mifos.
the class SavingsTestHelper method createSavingsOffering.
public SavingsOfferingBO createSavingsOffering(String offeringName, InterestCalcType interestCalcType, SavingsType savingsType) {
MeetingBO meetingIntCalc = TestObjectFactory.createMeeting(TestObjectFactory.getTypicalMeeting());
MeetingBO meetingIntPost = TestObjectFactory.createMeeting(TestObjectFactory.getTypicalMeeting());
return TestObjectFactory.createSavingsProduct(offeringName, ApplicableTo.GROUPS, new DateTimeService().getCurrentJavaDateTime(), PrdStatus.SAVINGS_ACTIVE, 300.0, RecommendedAmountUnit.PER_INDIVIDUAL, 24.0, 200.0, 200.0, savingsType, interestCalcType, meetingIntCalc, meetingIntPost);
}
use of org.mifos.application.meeting.business.MeetingBO in project head by mifos.
the class AccountActionStrutsTest method getLoanAccount.
private AccountBO getLoanAccount() {
MeetingBO meeting = TestObjectFactory.createMeeting(TestObjectFactory.getTypicalMeeting());
center = TestObjectFactory.createWeeklyFeeCenter(this.getClass().getSimpleName() + " Center", meeting);
group = TestObjectFactory.createWeeklyFeeGroupUnderCenter(this.getClass().getSimpleName() + " Group", CustomerStatus.GROUP_ACTIVE, center);
Date startDate = new Date(System.currentTimeMillis());
LoanOfferingBO loanOffering = TestObjectFactory.createLoanOffering(this.getClass().getSimpleName() + " LOAN", "", startDate, meeting);
return TestObjectFactory.createLoanAccount("42423142341", group, AccountState.LOAN_ACTIVE_IN_GOOD_STANDING, startDate, loanOffering);
}
use of org.mifos.application.meeting.business.MeetingBO in project head by mifos.
the class ApplyAdjustmentActionStrutsTest method getLoanAccount.
private AccountBO getLoanAccount() {
Date startDate = new Date(System.currentTimeMillis());
MeetingBO meeting = TestObjectFactory.createMeeting(TestObjectFactory.getTypicalMeeting());
center = TestObjectFactory.createWeeklyFeeCenter(this.getClass().getSimpleName() + " Center", meeting);
group = TestObjectFactory.createWeeklyFeeGroupUnderCenter(this.getClass().getSimpleName() + " Group", CustomerStatus.GROUP_ACTIVE, center);
LoanOfferingBO loanOffering = TestObjectFactory.createLoanOffering(startDate, meeting);
LoanBO loan = TestObjectFactory.createLoanAccount("42423142341", group, AccountState.LOAN_ACTIVE_IN_GOOD_STANDING, startDate, loanOffering);
StaticHibernateUtil.flushSession();
return TestObjectFactory.getObject(LoanBO.class, loan.getAccountId());
}
use of org.mifos.application.meeting.business.MeetingBO in project head by mifos.
the class SavingsApplyAdjustmentActionStrutsTest method createInitialObjects.
private void createInitialObjects() {
MeetingBO meeting = TestObjectFactory.createMeeting(TestObjectFactory.getTypicalMeeting());
center = TestObjectFactory.createWeeklyFeeCenter("Center_Active_test", meeting);
group = TestObjectFactory.createWeeklyFeeGroupUnderCenter("Group_Active_test", CustomerStatus.GROUP_ACTIVE, center);
}
Aggregations