Search in sources :

Example 1 with AchService

use of org.kuali.kfs.pdp.service.AchService in project cu-kfs by CU-CommunityApps.

the class PayeeACHAccountExtractServiceImplTest method createMockAchService.

private AchService createMockAchService() throws Exception {
    AchService achService = EasyMock.createMock(AchServiceImpl.class);
    // Only the alternate employee ID is expected to return a non-null payee result.
    EasyMock.expect(achService.getAchInformation(EasyMock.eq(PayeeIdTypeCodes.ENTITY), EasyMock.isA(String.class), EasyMock.eq(KFS_DIRECT_DEPOSIT_TYPE))).andStubReturn(null);
    EasyMock.expect(achService.getAchInformation(PayeeIdTypeCodes.EMPLOYEE, TEST_ALT_EMPLOYEEID, KFS_DIRECT_DEPOSIT_TYPE)).andStubReturn(createEmployeePayeeACHAccountForAlternateUser());
    EasyMock.expect(achService.getAchInformation(EasyMock.eq(PayeeIdTypeCodes.EMPLOYEE), EasyMock.not(EasyMock.eq(TEST_ALT_EMPLOYEEID)), EasyMock.eq(KFS_DIRECT_DEPOSIT_TYPE))).andStubReturn(null);
    EasyMock.replay(achService);
    return achService;
}
Also used : AchService(org.kuali.kfs.pdp.service.AchService)

Aggregations

AchService (org.kuali.kfs.pdp.service.AchService)1