use of edu.cornell.kfs.concur.batch.businessobject.ConcurStandardAccountingExtractDetailLine in project cu-kfs by CU-CommunityApps.
the class ConcurStandardAccountingExtractCashAdvanceServiceImplTest method buildSAELines.
private List<ConcurStandardAccountingExtractDetailLine> buildSAELines() {
List<ConcurSAEDetailLineFixture> lineFixtures = ConcurFixtureUtils.getFixturesContainingParentFixture(ConcurSAEDetailLineFixture.class, ConcurSAEFileFixture.PDP_TEST, ConcurSAEDetailLineFixture::getExtractFile);
List<ConcurStandardAccountingExtractDetailLine> saeLines = new ArrayList<ConcurStandardAccountingExtractDetailLine>();
for (ConcurSAEDetailLineFixture fixture : lineFixtures) {
saeLines.add(fixture.toDetailLine());
}
return saeLines;
}
use of edu.cornell.kfs.concur.batch.businessobject.ConcurStandardAccountingExtractDetailLine in project cu-kfs by CU-CommunityApps.
the class ConcurStandardAccountingExtractCashAdvanceServiceImplTest method validateIsCashAdvanceTrue.
@Test
public void validateIsCashAdvanceTrue() {
ConcurStandardAccountingExtractDetailLine line = ConcurSAEDetailLineFixture.PDP_TEST_CASH_ADVANCE_500.toDetailLine();
line.setCashAdvanceKey("1242");
assertTrue("Should be a cash advance line", concurStandardAccountingExtractCashAdvanceService.isCashAdvanceLine(line));
}
use of edu.cornell.kfs.concur.batch.businessobject.ConcurStandardAccountingExtractDetailLine in project cu-kfs by CU-CommunityApps.
the class ConcurStandardAccountingExtractServiceImplTest method assertCorrectResultForPDPInclusionCheck.
protected void assertCorrectResultForPDPInclusionCheck(boolean expectedResult, ConcurSAEDetailLineFixture fixture) throws Exception {
ConcurStandardAccountingExtractDetailLine line = fixture.toDetailLine();
boolean actualResult = concurStandardAccountingExtractServiceImpl.shouldProcessSAELineToPDP(line);
assertEquals("Wrong result when checking whether SAE line should be included in PDP output", expectedResult, actualResult);
}
use of edu.cornell.kfs.concur.batch.businessobject.ConcurStandardAccountingExtractDetailLine in project cu-kfs by CU-CommunityApps.
the class ConcurStandardAccountingExtractFileFixture method buildConcurStandardAccountingExtractDetailLine.
private static ConcurStandardAccountingExtractDetailLine buildConcurStandardAccountingExtractDetailLine(String debitCredit, KualiDecimal amount, String employeeGroupId) {
ConcurStandardAccountingExtractDetailLine line = new ConcurStandardAccountingExtractDetailLine();
line.setJounalDebitCredit(debitCredit);
line.setJournalAmount(amount);
line.setEmployeeGroupId(employeeGroupId);
line.setEmployeeLastName(EMPLOYEE_LAST_NAME);
line.setEmployeeFirstName(EMPLOYEE_FIRST_NAME);
line.setEmployeeMiddleInitial(EMPLOYEE_MIDDLE_INITIAL);
line.setPolicy(DEFAULT_POLICY);
line.setExpenseType(DEFAULT_EXPENSE_TYPE_NAME);
return line;
}
Aggregations