Search in sources :

Example 1 with MockJaxWsCompatibleDescriptor

use of com.google.api.ads.common.lib.soap.jaxws.testing.mocks.MockJaxWsCompatibleDescriptor in project googleads-java-lib by googleads.

the class JaxWsHandlerTest method testCreateSoapClient.

@Test
public void testCreateSoapClient() {
    SoapServiceDescriptor serviceDescriptor = new MockJaxWsCompatibleDescriptor();
    BindingProvider provider = jaxWsHandler.createSoapClient(serviceDescriptor);
    assertTrue(provider instanceof CampaignServiceInterfaceImpl);
    assertTrue(provider.getBinding().getHandlerChain().get(0) instanceof JaxWsSoapContextHandler);
}
Also used : MockJaxWsCompatibleDescriptor(com.google.api.ads.common.lib.soap.jaxws.testing.mocks.MockJaxWsCompatibleDescriptor) BindingProvider(javax.xml.ws.BindingProvider) SoapServiceDescriptor(com.google.api.ads.common.lib.soap.SoapServiceDescriptor) CampaignServiceInterfaceImpl(com.google.api.ads.common.lib.soap.jaxws.testing.mocks.CampaignServiceInterfaceImpl) Test(org.junit.Test)

Aggregations

SoapServiceDescriptor (com.google.api.ads.common.lib.soap.SoapServiceDescriptor)1 CampaignServiceInterfaceImpl (com.google.api.ads.common.lib.soap.jaxws.testing.mocks.CampaignServiceInterfaceImpl)1 MockJaxWsCompatibleDescriptor (com.google.api.ads.common.lib.soap.jaxws.testing.mocks.MockJaxWsCompatibleDescriptor)1 BindingProvider (javax.xml.ws.BindingProvider)1 Test (org.junit.Test)1