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());
}
Aggregations