Search in sources :

Example 1 with ConcurCollectorBatchFixture

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;
}
Also used : CollectorBatch(org.kuali.kfs.gl.batch.CollectorBatch) ConcurCollectorBatchFixture(edu.cornell.kfs.concur.batch.fixture.ConcurCollectorBatchFixture)

Aggregations

ConcurCollectorBatchFixture (edu.cornell.kfs.concur.batch.fixture.ConcurCollectorBatchFixture)1 CollectorBatch (org.kuali.kfs.gl.batch.CollectorBatch)1