Package com.google.api.ads.common.lib.soap.testing

Examples of com.google.api.ads.common.lib.soap.testing.MockSoapClientInterface


  }

  @Test
  public void testGetServiceClientAsInterface() {
    String endpointServer = "http://google.com";
    MockSoapClientInterface soapClient = new MockSoapClient();
    when(adsServiceClientFactory.getServiceClient(adsSession, MockSoapClientInterface.class))
        .thenReturn(soapClient);

    MockSoapClientInterface testSoapClient =
        baseAdsServiceClientFactory.getServiceClientAsInterface(adsSession,
            MockSoapClientInterface.class);

    assertSame(soapClient, testSoapClient);
  }
View Full Code Here


    when((Class<MockSoapClientInterface>) adsServiceDescriptor.getInterfaceClass())
        .thenReturn(MockSoapClientInterface.class);
    doReturn(null).when(adsServiceClientFactory).createProxy(any(AdsServiceClient.class),
        any(Set.class));

    MockSoapClientInterface testAdsServiceClient =
        adsServiceClientFactory.getServiceClient(adsSession, MockSoapClientInterface.class);

    verify(adsServiceClientFactory).createProxy(eq(adsServiceClient), setArg.capture());
    assertTrue(setArg.getValue().contains(MockSoapClientInterface.class));
  }
View Full Code Here

TOP

Related Classes of com.google.api.ads.common.lib.soap.testing.MockSoapClientInterface

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.