use of edu.cornell.kfs.concur.batch.fixture.ConcurCollectorBatchFixture in project cu-kfs by CU-CommunityApps.
the class ConcurStandardAccountingExtractCreateCollectorFileServiceImplTest method buildFixtureBasedCollectorBatch.
protected CollectorBatch buildFixtureBasedCollectorBatch(Integer sequenceNumber, ConcurStandardAccountingExtractFile saeFileContents) {
String fixtureConstantName = StringUtils.substringBeforeLast(saeFileContents.getOriginalFileName(), KFSConstants.DELIMITER);
ConcurCollectorBatchFixture fixture;
try {
fixture = ConcurCollectorBatchFixture.valueOf(fixtureConstantName);
} catch (IllegalArgumentException | NullPointerException e) {
return null;
}
CollectorBatch collectorBatch = fixture.toCollectorBatch();
collectorBatch.setBatchSequenceNumber(sequenceNumber);
return collectorBatch;
}
Aggregations