@SuppressWarnings("unchecked") @Test public void testSetHeaders() throws Exception { Object soapClient = new Object(); Credential credential = new Credential(BearerToken.authorizationHeaderAccessMethod()); AdManagerSession adManagerSession = new AdManagerSession.Builder() .withApplicationName("FooBar") .withOAuth2Credential(credential) .withEndpoint("https: .withNetworkCode("networkCode") .build(); adManagerHttpHeaderHandler.setHttpHeaders(soapClient, adManagerSession); verify(soapClientHandler).putAllHttpHeaders(eq(soapClient), any(Map.class)); }
@SuppressWarnings("unchecked") public void setHttpHeaders(Object soapClient, AdManagerSession adManagerSession) { Map<String, String> headersMap = Maps.newHashMap(); soapClientHandler.putAllHttpHeaders(soapClient, headersMap); }
AdManagerHttpHeaderHandler { @SuppressWarnings("unchecked") public void setHttpHeaders(Object soapClient, AdManagerSession adManagerSession) { Map<String, String> headersMap = Maps.newHashMap(); soapClientHandler.putAllHttpHeaders(soapClient, headersMap); } }
AdManagerHttpHeaderHandler { @SuppressWarnings("unchecked") public void setHttpHeaders(Object soapClient, AdManagerSession adManagerSession) { Map<String, String> headersMap = Maps.newHashMap(); soapClientHandler.putAllHttpHeaders(soapClient, headersMap); } @Inject  AdManagerHttpHeaderHandler(
      @SuppressWarnings(
              "rawtypes") /* Guice binding for SoapClientHandlerInterface does not include the type
                           * argument T because it is bound in the SOAP toolkit-agnostic configuration
                           * module. Therefore, must use the raw type here. */
          SoapClientHandlerInterface soapClientHandler); }
AdManagerHttpHeaderHandler { @SuppressWarnings("unchecked") public void setHttpHeaders(Object soapClient, AdManagerSession adManagerSession) { Map<String, String> headersMap = Maps.newHashMap(); soapClientHandler.putAllHttpHeaders(soapClient, headersMap); } @Inject  AdManagerHttpHeaderHandler(
      @SuppressWarnings(
              "rawtypes") /* Guice binding for SoapClientHandlerInterface does not include the type
                           * argument T because it is bound in the SOAP toolkit-agnostic configuration
                           * module. Therefore, must use the raw type here. */
          SoapClientHandlerInterface soapClientHandler); @SuppressWarnings("unchecked") /* See constructor comments. */ void setHttpHeaders(Object soapClient, AdManagerSession adManagerSession); }
AdManagerHttpHeaderHandler { @SuppressWarnings("unchecked") public void setHttpHeaders(Object soapClient, AdManagerSession adManagerSession) { Map<String, String> headersMap = Maps.newHashMap(); soapClientHandler.putAllHttpHeaders(soapClient, headersMap); } @Inject  AdManagerHttpHeaderHandler(
      @SuppressWarnings(
              "rawtypes") /* Guice binding for SoapClientHandlerInterface does not include the type
                           * argument T because it is bound in the SOAP toolkit-agnostic configuration
                           * module. Therefore, must use the raw type here. */
          SoapClientHandlerInterface soapClientHandler); @SuppressWarnings("unchecked") /* See constructor comments. */ void setHttpHeaders(Object soapClient, AdManagerSession adManagerSession);  }