Search in sources :

Example 1 with ConcurParameterConstantsFixture

use of edu.cornell.kfs.concur.batch.fixture.ConcurParameterConstantsFixture 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)

Example 2 with ConcurParameterConstantsFixture

use of edu.cornell.kfs.concur.batch.fixture.ConcurParameterConstantsFixture in project cu-kfs by CU-CommunityApps.

the class ConcurRequestExtractFileValidationServiceImplTest method setUp.

@Before
public void setUp() throws Exception {
    Logger.getLogger(ConcurRequestExtractFileValidationServiceImpl.class).setLevel(Level.DEBUG);
    concurRequestExtractFileValidationService = new ConcurRequestExtractFileValidationServiceImpl();
    concurBatchUtilityService = new TestableConcurBatchUtilityServiceImpl();
    concurEmployeeInfoValidationService = new TestableConcurEmployeeInfoValidationServiceImpl();
    concurRequestExtractFileValidationService.setConcurBatchUtilityService(concurBatchUtilityService);
    concurRequestExtractFileValidationService.setConcurEmployeeInfoValidationService(concurEmployeeInfoValidationService);
    configurationService = new TestableConfigurationServiceImpl();
    concurRequestExtractFileValidationService.setConfigurationService(configurationService);
    concurParameterConstantsFixture = new ConcurParameterConstantsFixture();
    concurApplicationPropertiesFixture = new ConcurApplicationPropertiesFixture();
}
Also used : ConcurParameterConstantsFixture(edu.cornell.kfs.concur.batch.fixture.ConcurParameterConstantsFixture) ConcurApplicationPropertiesFixture(edu.cornell.kfs.concur.batch.fixture.ConcurApplicationPropertiesFixture) Before(org.junit.Before)

Aggregations

ConcurParameterConstantsFixture (edu.cornell.kfs.concur.batch.fixture.ConcurParameterConstantsFixture)2 Before (org.junit.Before)2 ConcurApplicationPropertiesFixture (edu.cornell.kfs.concur.batch.fixture.ConcurApplicationPropertiesFixture)1 ConcurStandardAccountingExtractBatchReportData (edu.cornell.kfs.concur.batch.report.ConcurStandardAccountingExtractBatchReportData)1 KualiDecimal (org.kuali.rice.core.api.util.type.KualiDecimal)1