use of org.kuali.rice.location.api.state.StateService 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