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);
}
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");
}
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());
}
Aggregations