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