Search in sources :

Example 1 with PostalCodeValidationServiceImpl

use of org.kuali.kfs.sys.service.impl.PostalCodeValidationServiceImpl 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();
    LocationService mockLocationService = mock(LocationService.class);
    when(mockLocationService.getState(COUNTRY, STATE)).thenReturn(makeState());
    ((PostalCodeValidationServiceImpl) postalCodeValidationSerivce).setLocationService(mockLocationService);
    ((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) LocationService(org.kuali.kfs.sys.service.LocationService) PostalCodeValidationServiceImpl(org.kuali.kfs.sys.service.impl.PostalCodeValidationServiceImpl) Before(org.junit.Before)

Aggregations

Before (org.junit.Before)1 LocationService (org.kuali.kfs.sys.service.LocationService)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