Search in sources :

Example 6 with AchIncomeNote

use of edu.cornell.kfs.fp.businessobject.AchIncomeNote in project cu-kfs by CU-CommunityApps.

the class AdvanceDepositServiceImplTest method testCreateSourceAccountingLineDefault.

@Test
public void testCreateSourceAccountingLineDefault() {
    AchIncomeTransaction transaction = new AchIncomeTransaction();
    transaction.setNotes(new ArrayList<AchIncomeNote>());
    advanceDepositService.createSourceAccountingLine(transaction, advanceDepositDocument);
    assertNotNull(advanceDepositDocument.getSourceAccountingLines());
    assertEquals(1, advanceDepositDocument.getSourceAccountingLines().size());
    assertEquals("IT", advanceDepositDocument.getSourceAccountingLine(0).getChartOfAccountsCode());
    assertEquals("2240", advanceDepositDocument.getSourceAccountingLine(0).getFinancialObjectCode());
    assertEquals("G621060", advanceDepositDocument.getSourceAccountingLine(0).getAccountNumber());
}
Also used : AchIncomeTransaction(edu.cornell.kfs.fp.businessobject.AchIncomeTransaction) AchIncomeNote(edu.cornell.kfs.fp.businessobject.AchIncomeNote) Test(org.junit.Test)

Aggregations

AchIncomeNote (edu.cornell.kfs.fp.businessobject.AchIncomeNote)6 AchIncomeTransaction (edu.cornell.kfs.fp.businessobject.AchIncomeTransaction)2 ArrayList (java.util.ArrayList)2 Test (org.junit.Test)2 AchIncomeFileTransactionNote (edu.cornell.kfs.fp.businessobject.AchIncomeFileTransactionNote)1 IncomingWireAchMapping (edu.cornell.kfs.fp.businessobject.IncomingWireAchMapping)1 ByteArrayInputStream (java.io.ByteArrayInputStream)1 IOException (java.io.IOException)1 SimpleDateFormat (java.text.SimpleDateFormat)1 Attachment (org.kuali.kfs.krad.bo.Attachment)1 Note (org.kuali.kfs.krad.bo.Note)1