use of org.mifos.accounts.financial.business.GLCategoryType in project head by mifos.
the class DepositAccountingEntryTest method testBuildAccountEntryDepositIntoVoluntarySavings.
@Test
public void testBuildAccountEntryDepositIntoVoluntarySavings() throws FinancialException {
SavingsType savingsType = SavingsType.VOLUNTARY;
GLCategoryType bankCategoryType = GLCategoryType.ASSET;
GLCategoryType savingsCategoryType = GLCategoryType.LIABILITY;
FinancialActionConstants financialActionConstant = FinancialActionConstants.VOLUNTARYDEPOSIT;
setupVoluntaryForOneTest(savingsType, bankCategoryType, savingsCategoryType, financialActionConstant);
doBuild(new DepositAccountingEntry(), mockedFinancialBusinessService, mockedFinancialActivity);
// verify the two transactions created
verifyCreatedTransactions(depositAmount, mockedFinancialActivity, mockedIncomingTransaction, mockedFinancialAction, mockedBankGLCode, mockedSavingsDepositGLCode, bankCategoryType, FinancialConstants.DEBIT, savingsCategoryType, FinancialConstants.CREDIT);
}
use of org.mifos.accounts.financial.business.GLCategoryType in project head by mifos.
the class DepositAccountingEntryTest method testBuildAccountEntryDepositIntoMandatorySavings.
@Test
public void testBuildAccountEntryDepositIntoMandatorySavings() throws FinancialException {
SavingsType savingsType = SavingsType.MANDATORY;
GLCategoryType bankCategoryType = GLCategoryType.ASSET;
GLCategoryType savingsCategoryType = GLCategoryType.LIABILITY;
FinancialActionConstants financialActionConstant = FinancialActionConstants.MANDATORYDEPOSIT;
setupMandatoryForOneTest(savingsType, bankCategoryType, savingsCategoryType, financialActionConstant);
doBuild(new DepositAccountingEntry(), mockedFinancialBusinessService, mockedFinancialActivity);
verifyCreatedTransactions(depositAmount, mockedFinancialActivity, mockedIncomingTransaction, mockedFinancialAction, mockedBankGLCode, mockedSavingsDepositGLCode, bankCategoryType, FinancialConstants.DEBIT, savingsCategoryType, FinancialConstants.CREDIT);
}
Aggregations