use of edu.cornell.kfs.sys.service.mock.MockParameterServiceImpl 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 edu.cornell.kfs.sys.service.mock.MockParameterServiceImpl in project cu-kfs by CU-CommunityApps.
the class CuPhoneNumberServiceImplTest method setUp.
@Override
protected void setUp() throws Exception {
super.setUp();
cuPhoneNumberServiceImpl = new CuPhoneNumberServiceImpl();
cuPhoneNumberServiceImpl.setParameterService(new MockParameterServiceImpl());
}
use of edu.cornell.kfs.sys.service.mock.MockParameterServiceImpl in project cu-kfs by CU-CommunityApps.
the class AdvanceDepositServiceImplTest method setUp.
@Before
public void setUp() {
advanceDepositService = new TestableAdvanceDepositServiceImpl();
advanceDepositService.setBusinessObjectService(new MockBusinessObjectService());
advanceDepositService.setDateTimeService(new DateTimeServiceImpl());
advanceDepositService.setParameterService(new MockParameterServiceImpl());
mapping = new IncomingWireAchMapping();
mapping.setShortDescription("ARMY");
ArrayList<String> methodNames = new ArrayList<>();
for (Method method : AdvanceDepositDocument.class.getMethods()) {
if (!Modifier.isFinal(method.getModifiers()) && !method.getName().startsWith("set") && !method.getName().startsWith("get")) {
methodNames.add(method.getName());
}
}
IMockBuilder<AdvanceDepositDocument> builder = EasyMock.createMockBuilder(AdvanceDepositDocument.class).addMockedMethods(methodNames.toArray(new String[0]));
advanceDepositDocument = builder.createNiceMock();
GlobalVariables.getMessageMap().clearErrorMessages();
}
use of edu.cornell.kfs.sys.service.mock.MockParameterServiceImpl 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