use of org.kuali.kfs.fp.document.web.struts.DisbursementVoucherForm in project cu-kfs by CU-CommunityApps.
the class IWantDocumentServiceImplTest method testSetUpDVDetailsFromIWantDoc.
public void testSetUpDVDetailsFromIWantDoc() throws Exception {
IWantDocument iWantDocument = IWantDocumentFixture.I_WANT_DOC.createIWantDocument();
CuDisbursementVoucherDocument disbursementVoucherDocument = (CuDisbursementVoucherDocument) SpringContext.getBean(DocumentService.class).getNewDocument(CuDisbursementVoucherDocument.class);
disbursementVoucherDocument.initiateDocument();
DisbursementVoucherForm disbursementVoucherForm = new DisbursementVoucherForm();
iWantDocumentService.setUpDVDetailsFromIWantDoc(iWantDocument, disbursementVoucherDocument, disbursementVoucherForm);
assertEquals(1, disbursementVoucherDocument.getSourceAccountingLines().size());
assertEquals(iWantDocument.getTotalDollarAmount(), disbursementVoucherDocument.getDisbVchrCheckTotalAmount());
}
Aggregations