Package com.google.api.ads.common.lib.utils

Examples of com.google.api.ads.common.lib.utils.Internals


  /**
   * Test method for {@link DfpInternals#getInstance()}.
   */
  @Test
  public void testGetInstance() {
    Internals internals = DfpInternals.getInstance();
    String userAgent = internals.getUserAgentCombiner().getUserAgent("test");

    assertTrue(userAgent.contains("DfpApi"));
    assertFalse(userAgent.contains("DfaApi"));
    assertFalse(userAgent.contains("AwApi"));
  }
View Full Code Here


  /**
   * Test method for {@link AdWordsInternals#getInstance()}.
   */
  @Test
  public void testGetInstance() {
    Internals internals = AdWordsInternals.getInstance();
    String userAgent = internals.getUserAgentCombiner().getUserAgent("test");

    assertTrue(userAgent.contains("AwApi"));
    assertFalse(userAgent.contains("DfaApi"));
    assertFalse(userAgent.contains("DfpApi"));
  }
View Full Code Here

  /**
   * Test method for {@link DfaInternals#getInstance()}.
   */
  @Test
  public void testGetInstance() {
    Internals internals = DfaInternals.getInstance();
    String userAgent = internals.getUserAgentCombiner().getUserAgent("test");

    assertTrue(userAgent.contains("DfaApi"));
    assertFalse(userAgent.contains("DfpApi"));
    assertFalse(userAgent.contains("AwApi"));
  }
View Full Code Here

TOP

Related Classes of com.google.api.ads.common.lib.utils.Internals

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.