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