Search in sources :

Example 1 with SubmitFormParameters

use of org.mifos.test.acceptance.framework.admin.FeesCreatePage.SubmitFormParameters in project head by mifos.

the class ClientTest method defineNewFree.

private void defineNewFree(String name, int feeFrequencyType, double amount) {
    SubmitFormParameters params = new SubmitFormParameters();
    params.setFeeName(name);
    params.setCategoryType(SubmitFormParameters.ALL_CUSTOMERS);
    params.setFeeFrequencyType(feeFrequencyType);
    if (feeFrequencyType == SubmitFormParameters.ONETIME_FEE_FREQUENCY) {
        params.setCustomerCharge(SubmitFormParameters.UPFRONT);
    } else {
        params.setFeeRecurrenceType(SubmitFormParameters.WEEKLY_FEE_RECURRENCE);
        params.setWeekRecurAfter(1);
    }
    params.setAmount(amount);
    params.setGlCode("31301 - Fees");
    feeTestHelper.defineFees(params);
}
Also used : SubmitFormParameters(org.mifos.test.acceptance.framework.admin.FeesCreatePage.SubmitFormParameters)

Example 2 with SubmitFormParameters

use of org.mifos.test.acceptance.framework.admin.FeesCreatePage.SubmitFormParameters in project head by mifos.

the class DefineAndViewFeesTest method defineFee.

private void defineFee(String feeName, String categoryType) {
    SubmitFormParameters feeParameters = feeTestHelper.getFeeParameters(feeName, categoryType, false, SubmitFormParameters.ONETIME_FEE_FREQUENCY, 20, "31301 - Fees");
    feeParameters.setCustomerCharge("Upfront");
    feeTestHelper.defineFees(feeParameters);
}
Also used : SubmitFormParameters(org.mifos.test.acceptance.framework.admin.FeesCreatePage.SubmitFormParameters)

Example 3 with SubmitFormParameters

use of org.mifos.test.acceptance.framework.admin.FeesCreatePage.SubmitFormParameters in project head by mifos.

the class DefineAndViewFeesTest method createPeriodicFees.

// one of the dependent methods throws Exception
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
public void createPeriodicFees() throws Exception {
    SubmitFormParameters feeParameters = feeTestHelper.getFeeParameters(StringUtil.getRandomString(5), "Group", false, SubmitFormParameters.PERIODIC_FEE_FREQUENCY, 6, "6201 - Miscelleneous Income");
    feeParameters.setFeeFrequencyType(feeParameters.PERIODIC_FEE_FREQUENCY);
    feeParameters.setFeeRecurrenceType(feeParameters.MONTHLY_FEE_RECURRENCE);
    feeParameters.setMonthRecurAfter(2);
    feeTestHelper.defineFees(feeParameters);
}
Also used : SubmitFormParameters(org.mifos.test.acceptance.framework.admin.FeesCreatePage.SubmitFormParameters)

Example 4 with SubmitFormParameters

use of org.mifos.test.acceptance.framework.admin.FeesCreatePage.SubmitFormParameters in project head by mifos.

the class DefineAndViewFeesTest method createOneTimeFees.

// one of the dependent methods throws Exception
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
public void createOneTimeFees() {
    SubmitFormParameters feeParameters = feeTestHelper.getFeeParameters(StringUtil.getRandomString(5), "All Customers", false, SubmitFormParameters.ONETIME_FEE_FREQUENCY, 20, "31301 - Fees");
    feeParameters.setCustomerCharge("Upfront");
    feeTestHelper.defineFees(feeParameters);
}
Also used : SubmitFormParameters(org.mifos.test.acceptance.framework.admin.FeesCreatePage.SubmitFormParameters)

Aggregations

SubmitFormParameters (org.mifos.test.acceptance.framework.admin.FeesCreatePage.SubmitFormParameters)4