public static PayrollConfiguration getPayrollConfiguration()

in component-test/src/main/java/org/apache/fineract/cn/payroll/domain/DomainObjectGenerator.java [34:48]


  public static PayrollConfiguration getPayrollConfiguration() {
    final PayrollConfiguration payrollConfiguration = new PayrollConfiguration();
    payrollConfiguration.setMainAccountNumber(RandomStringUtils.randomAlphanumeric(34));

    final ArrayList<PayrollAllocation> payrollAllocations = new ArrayList<>();
    payrollConfiguration.setPayrollAllocations(payrollAllocations);

    final PayrollAllocation savingsAllocation = new PayrollAllocation();
    payrollAllocations.add(savingsAllocation);
    savingsAllocation.setAccountNumber(RandomStringUtils.randomAlphanumeric(34));
    savingsAllocation.setAmount(BigDecimal.valueOf(5.00D));
    savingsAllocation.setProportional(Boolean.TRUE);

    return payrollConfiguration;
  }