Search in sources :

Example 1 with MockParameterServiceImpl

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);
}
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 MockParameterServiceImpl

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());
}
Also used : MockParameterServiceImpl(edu.cornell.kfs.sys.service.mock.MockParameterServiceImpl)

Example 3 with 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();
}
Also used : DateTimeServiceImpl(org.kuali.rice.core.impl.datetime.DateTimeServiceImpl) MockParameterServiceImpl(edu.cornell.kfs.sys.service.mock.MockParameterServiceImpl) AdvanceDepositDocument(org.kuali.kfs.fp.document.AdvanceDepositDocument) ArrayList(java.util.ArrayList) Method(java.lang.reflect.Method) IncomingWireAchMapping(edu.cornell.kfs.fp.businessobject.IncomingWireAchMapping) Before(org.junit.Before)

Example 4 with MockParameterServiceImpl

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

MockParameterServiceImpl (edu.cornell.kfs.sys.service.mock.MockParameterServiceImpl)4 Before (org.junit.Before)3 EmailServiceImpl (org.kuali.kfs.sys.service.impl.EmailServiceImpl)2 IncomingWireAchMapping (edu.cornell.kfs.fp.businessobject.IncomingWireAchMapping)1 Method (java.lang.reflect.Method)1 ArrayList (java.util.ArrayList)1 ParameterService (org.kuali.kfs.coreservice.framework.parameter.ParameterService)1 AdvanceDepositDocument (org.kuali.kfs.fp.document.AdvanceDepositDocument)1 BatchInputFileServiceImpl (org.kuali.kfs.sys.batch.service.impl.BatchInputFileServiceImpl)1 DateTimeServiceImpl (org.kuali.rice.core.impl.datetime.DateTimeServiceImpl)1