use of edu.cornell.kfs.concur.batch.report.ConcurRequestExtractBatchReportData in project cu-kfs by CU-CommunityApps.
the class ConcurRequestExtractFileValidationServiceImplTest method testFileContainsBadEmployeeGroupId.
@Test
public void testFileContainsBadEmployeeGroupId() {
LOG.info("testFileContainsBadEmployeeGroupId");
ConcurRequestExtractFile testFile = ConcurRequestExtractFileFixture.BAD_EMPLOYEE_GROUP_ID_FILE.createConcurRequestExtractFile();
ConcurRequestExtractBatchReportData reportData = new ConcurRequestExtractBatchReportData();
assertFalse("Expected Result: Request Detail row contains BAD Employee Group Id.", concurRequestExtractFileValidationService.requestExtractHeaderRowValidatesToFileContents(testFile, reportData));
LOG.info(reportData.getHeaderValidationErrors());
LOG.info(KFSConstants.NEWLINE);
reportData = null;
}
use of edu.cornell.kfs.concur.batch.report.ConcurRequestExtractBatchReportData in project cu-kfs by CU-CommunityApps.
the class ConcurRequestExtractFileValidationServiceImplTest method testHeaderAmountDoesNotMatch.
@Test
public void testHeaderAmountDoesNotMatch() {
LOG.info("testHeaderAmountDoesNotMatch");
ConcurRequestExtractFile testFile = ConcurRequestExtractFileFixture.BAD_REQUEST_AMOUNT_FILE.createConcurRequestExtractFile();
ConcurRequestExtractBatchReportData reportData = new ConcurRequestExtractBatchReportData();
assertFalse("Expected Result: Header amount should NOT match sum of row amounts from file.", concurRequestExtractFileValidationService.requestExtractHeaderRowValidatesToFileContents(testFile, reportData));
LOG.info(reportData.getHeaderValidationErrors());
LOG.info(KFSConstants.NEWLINE);
reportData = null;
}
Aggregations