Search in sources :

Example 1 with EmailServiceImpl

use of org.kuali.kfs.sys.service.impl.EmailServiceImpl in project cu-kfs by CU-CommunityApps.

the class ProcurementCardErrorEmailServiceImplTest method setUp.

@Before
public void setUp() throws Exception {
    procurementCardErrorEmailService = new ProcurementCardErrorEmailServiceImpl();
    EmailServiceImpl emailService = new EmailServiceImpl();
    ParameterService parameterService = new MockParameterServiceImpl();
    emailService.setParameterService(parameterService);
    procurementCardErrorEmailService.setEmailService(emailService);
    procurementCardErrorEmailService.setParameterService(parameterService);
}
Also used : EmailServiceImpl(org.kuali.kfs.sys.service.impl.EmailServiceImpl) ParameterService(org.kuali.kfs.coreservice.framework.parameter.ParameterService) MockParameterServiceImpl(edu.cornell.kfs.sys.service.mock.MockParameterServiceImpl) Before(org.junit.Before)

Example 2 with EmailServiceImpl

use of org.kuali.kfs.sys.service.impl.EmailServiceImpl in project cu-kfs by CU-CommunityApps.

the class AdvanceDepositServiceImplTest method additionalSetupForFileProcessing.

protected void additionalSetupForFileProcessing() throws IOException, ParseException {
    List<String> fileNames = new ArrayList<>();
    fileNames.add(GOOD_DATA_FILE);
    fileNames.add(EMPTY_DATA_FILE);
    fileNames.add(GOOD_DATA_FILE_2);
    BatchInputFileService batchInputFileService = EasyMock.createMock(CuBatchInputFileServiceImpl.class);
    EasyMock.expect(batchInputFileService.listInputFileNamesWithDoneFile(EasyMock.isA(BatchInputFileType.class))).andReturn(fileNames);
    EasyMock.expect(batchInputFileService.parse(EasyMock.isA(BatchInputFileType.class), EasyMock.isA(byte[].class))).andReturn(setupAchIncomeFilesGood()).andThrow(new RuntimeException()).andReturn(setupAchIncomeFilesGood());
    EasyMock.replay(batchInputFileService);
    advanceDepositService.setBatchInputFileService(batchInputFileService);
    advanceDepositService.setEmailService(new EmailServiceImpl());
    achIncomeInputFileType = new FlatFileParserBase();
    achIncomeInputFileType.setDirectoryPath(BATCH_DIRECTORY);
    achIncomeInputFileType.setFileExtension(TXT_FILE_EXTENSION);
    advanceDepositService.setBatchInputFileType(achIncomeInputFileType);
    setupBatchFiles(DATA_FILE_GOOD_NAME);
    setupBatchFiles(DATA_FILE_EMPTY_NAME);
    setupBatchFiles(DATA_FILE_GOOD_NAME + "2");
}
Also used : EmailServiceImpl(org.kuali.kfs.sys.service.impl.EmailServiceImpl) FlatFileParserBase(org.kuali.kfs.sys.batch.FlatFileParserBase) ArrayList(java.util.ArrayList) BatchInputFileType(org.kuali.kfs.sys.batch.BatchInputFileType) BatchInputFileService(org.kuali.kfs.sys.batch.service.BatchInputFileService)

Example 3 with EmailServiceImpl

use of org.kuali.kfs.sys.service.impl.EmailServiceImpl in project cu-kfs by CU-CommunityApps.

the class PayeeACHAccountExtractServiceImplTest method setUp.

@Before
public void setUp() throws Exception {
    payeeACHAccountExtractService = new TestPayeeACHAccountExtractService();
    payeeACHAccountExtractService.setBatchInputFileService(new BatchInputFileServiceImpl());
    payeeACHAccountExtractService.setBatchInputFileTypes(Collections.<BatchInputFileType>singletonList(getBatchInputFileType()));
    payeeACHAccountExtractService.setParameterService(new MockParameterServiceImpl());
    payeeACHAccountExtractService.setEmailService(new EmailServiceImpl());
    payeeACHAccountExtractService.setDocumentService(createMockDocumentService());
    payeeACHAccountExtractService.setDataDictionaryService(createMockDataDictionaryService());
    payeeACHAccountExtractService.setPersonService(createMockPersonService());
    payeeACHAccountExtractService.setSequenceAccessorService(new MockSequenceAccessorService());
    payeeACHAccountExtractService.setAchService(createMockAchService());
    payeeACHAccountExtractService.setAchBankService(createMockAchBankService());
}
Also used : EmailServiceImpl(org.kuali.kfs.sys.service.impl.EmailServiceImpl) MockParameterServiceImpl(edu.cornell.kfs.sys.service.mock.MockParameterServiceImpl) BatchInputFileServiceImpl(org.kuali.kfs.sys.batch.service.impl.BatchInputFileServiceImpl) Before(org.junit.Before)

Aggregations

EmailServiceImpl (org.kuali.kfs.sys.service.impl.EmailServiceImpl)3 MockParameterServiceImpl (edu.cornell.kfs.sys.service.mock.MockParameterServiceImpl)2 Before (org.junit.Before)2 ArrayList (java.util.ArrayList)1 ParameterService (org.kuali.kfs.coreservice.framework.parameter.ParameterService)1 BatchInputFileType (org.kuali.kfs.sys.batch.BatchInputFileType)1 FlatFileParserBase (org.kuali.kfs.sys.batch.FlatFileParserBase)1 BatchInputFileService (org.kuali.kfs.sys.batch.service.BatchInputFileService)1 BatchInputFileServiceImpl (org.kuali.kfs.sys.batch.service.impl.BatchInputFileServiceImpl)1