Examples of DfaModule


Examples of com.google.api.ads.dfa.lib.DfaModule

  @SuppressWarnings("rawtypes") /* Guice lacks support for template type literals.*/
  @Override
  public void configure() {
    bind(new TypeLiteral<HeaderHandler>() {}).to(new TypeLiteral<DfaAxisHeaderHandler>() {});
    install(new AxisModule());
    install(new DfaModule());
    install(new DfaSoapModule());
    configureConfigurations(this.getClass().getResource("conf/props/build.properties"));
    bind(LoginTokensHelper.class).to(DfaAxisLoginTokensHelper.class);
    bind(TokenExpirationDetector.class).to(DfaAxisTokenExpirationDetector.class);
  }
View Full Code Here

Examples of com.google.api.ads.dfa.lib.DfaModule

  @Test
  public void testPropertyFileIncludedInConfig() throws Exception {
    File adsPropertiesFile = createPropertiesFile();
    System.setProperty("user.home", adsPropertiesFile.getParentFile().getAbsolutePath());
    DfaLibConfiguration config = Guice.createInjector(
        new DfaModule()).getInstance(DfaLibConfiguration.class);
    assertFalse(config.isAutoRefreshOAuth2TokenEnabled());
  }
View Full Code Here

Examples of com.google.api.ads.dfa.lib.DfaModule

public class DfaApiConfigurationIntegrationTest {

  @Test
  public void testJarApiPropertiesFileIncludedInConfig() throws Exception {
    DfaApiConfiguration config = Guice.createInjector(
        new DfaModule()).getInstance(DfaApiConfiguration.class);
    assertEquals("http://www.doubleclick.net/dfa-api", config.getNamespacePrefix());
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.