/** * Creates the SOAP client from the SOAP client handler. */ @VisibleForTesting Object createSoapClient(D adsServiceDescriptor) { return soapClientHandler.createSoapClient(adsServiceDescriptor); }
/** * Creates the SOAP client from the SOAP client handler. */ @VisibleForTesting Object createSoapClient(D adsServiceDescriptor) { return soapClientHandler.createSoapClient(adsServiceDescriptor); }
@Test public void testCreateSoapClient() { when(soapClientHandler.createSoapClient(adsServiceDescriptor)) .thenReturn(soapClient); Object testSoapClient = abstractAdsServiceClientFactoryHelper.createSoapClient(adsServiceDescriptor); assertSame(soapClient, testSoapClient); }
@Test public void testCreateAdsServiceClient() { when(soapClientHandler.createSoapClient(adsServiceDescriptor)).thenReturn(soapClient); when(adsServiceClientFactory.create(soapClient, adsServiceDescriptor, adsSession)) .thenReturn(adsServiceClient); AdsServiceClient<AdsSession, AdsServiceDescriptor> testAdsServiceClient = abstractAdsServiceClientFactoryHelper.createAdsServiceClient(adsServiceDescriptor, adsSession); assertSame(adsServiceClient, testAdsServiceClient); }