Search in sources :

Example 1 with PostalCodeValidationService

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

the class PurchaseOrderTransmissionMethodDataRulesServiceImplTest method setUp.

@Before
public void setUp() throws Exception {
    poTransMethodSataRulesService = new PurchaseOrderTransmissionMethodDataRulesServiceImpl();
    PostalCodeValidationService postalCodeValidationSerivce = new testablePostalCodeValidationServiceImpl();
    StateService mockStateService = EasyMock.createMock(StateService.class);
    EasyMock.expect(mockStateService.getState(COUNTRY, STATE)).andReturn(makeState());
    EasyMock.replay(mockStateService);
    ((PostalCodeValidationServiceImpl) postalCodeValidationSerivce).setStateService(mockStateService);
    ((PurchaseOrderTransmissionMethodDataRulesServiceImpl) this.poTransMethodSataRulesService).setPostalCodeValidationService(postalCodeValidationSerivce);
    PhoneNumberService phoneNumberService = new testablePhoneNumberServiceImpl();
    ((PurchaseOrderTransmissionMethodDataRulesServiceImpl) this.poTransMethodSataRulesService).setPhoneNumberService(phoneNumberService);
}
Also used : PostalCodeValidationService(org.kuali.kfs.sys.service.PostalCodeValidationService) PhoneNumberService(org.kuali.kfs.vnd.service.PhoneNumberService) StateService(org.kuali.rice.location.api.state.StateService) PostalCodeValidationServiceImpl(org.kuali.kfs.sys.service.impl.PostalCodeValidationServiceImpl) Before(org.junit.Before)

Aggregations

Before (org.junit.Before)1 PostalCodeValidationService (org.kuali.kfs.sys.service.PostalCodeValidationService)1 PostalCodeValidationServiceImpl (org.kuali.kfs.sys.service.impl.PostalCodeValidationServiceImpl)1 PhoneNumberService (org.kuali.kfs.vnd.service.PhoneNumberService)1 StateService (org.kuali.rice.location.api.state.StateService)1