Search in sources :

Example 6 with ConcurStandardAccountingExtractBatchReportData

use of edu.cornell.kfs.concur.batch.report.ConcurStandardAccountingExtractBatchReportData in project cu-kfs by CU-CommunityApps.

the class ConcurStandardAccountingExtractValidationServiceImplTest method setUp.

@Before
public void setUp() throws Exception {
    Logger.getLogger(ConcurStandardAccountingExtractValidationServiceImpl.class).setLevel(Level.DEBUG);
    concurBatchUtilityService = new TestableConcurBatchUtilityServiceImpl();
    concurEmployeeInfoValidationService = new TestableConcurEmployeeInfoValidationServiceImpl();
    concurStandardAccountingValidationService = new ConcurStandardAccountingExtractValidationServiceImpl();
    concurStandardAccountingValidationService.setConcurBatchUtilityService(concurBatchUtilityService);
    concurStandardAccountingValidationService.setConcurEmployeeInfoValidationService(concurEmployeeInfoValidationService);
    KualiDecimal[] debits = { new KualiDecimal(100.75), new KualiDecimal(-50.45) };
    KualiDecimal[] credits = {};
    cornellUppercasefile = ConcurStandardAccountingExtractFileFixture.buildConcurStandardAccountingExtractFile(debits, credits, CORNELL_UPPERCASE_GROUP_ID);
    cornellMixedcaseFile = ConcurStandardAccountingExtractFileFixture.buildConcurStandardAccountingExtractFile(debits, credits, CORNELL_MIXED_CASE_GROUP_ID);
    executivesFile = ConcurStandardAccountingExtractFileFixture.buildConcurStandardAccountingExtractFile(debits, credits, EXECUTIVES_GROUP_ID);
    nullGroupIdFile = ConcurStandardAccountingExtractFileFixture.buildConcurStandardAccountingExtractFile(debits, credits, NULL_GROUP_ID);
    fooGroupIdFile = ConcurStandardAccountingExtractFileFixture.buildConcurStandardAccountingExtractFile(debits, credits, FOO_GROUP_ID);
    reportData = new ConcurStandardAccountingExtractBatchReportData();
    concurParameterConstantsFixture = new ConcurParameterConstantsFixture();
}
Also used : ConcurParameterConstantsFixture(edu.cornell.kfs.concur.batch.fixture.ConcurParameterConstantsFixture) KualiDecimal(org.kuali.rice.core.api.util.type.KualiDecimal) ConcurStandardAccountingExtractBatchReportData(edu.cornell.kfs.concur.batch.report.ConcurStandardAccountingExtractBatchReportData) Before(org.junit.Before)

Aggregations

ConcurStandardAccountingExtractBatchReportData (edu.cornell.kfs.concur.batch.report.ConcurStandardAccountingExtractBatchReportData)6 ConcurStandardAccountingExtractFile (edu.cornell.kfs.concur.batch.businessobject.ConcurStandardAccountingExtractFile)4 Before (org.junit.Before)2 ConcurParameterConstantsFixture (edu.cornell.kfs.concur.batch.fixture.ConcurParameterConstantsFixture)1 ConcurSAEDetailLineFixture (edu.cornell.kfs.concur.batch.fixture.ConcurSAEDetailLineFixture)1 File (java.io.File)1 IOException (java.io.IOException)1 CollectorBatch (org.kuali.kfs.gl.batch.CollectorBatch)1 KualiDecimal (org.kuali.rice.core.api.util.type.KualiDecimal)1 DateTimeServiceImpl (org.kuali.rice.core.impl.datetime.DateTimeServiceImpl)1