Package com.eclipsesource.tabris.tracking.internal.analytics.model.hit

Examples of com.eclipsesource.tabris.tracking.internal.analytics.model.hit.Hit


    ArgumentCaptor<Hit> hitCaptor = ArgumentCaptor.forClass( Hit.class );
    ArgumentCaptor<AdvancedConfiguration> configCaptor = ArgumentCaptor.forClass( AdvancedConfiguration.class );
    verify( analytics, times( 2 ) ).track( hitCaptor.capture(), eq( "clientId" ), configCaptor.capture() );
    assertAdvancedConfiguration( configCaptor.getAllValues().get( 0 ) );
    Hit transactionHit = hitCaptor.getAllValues().get( 0 );
    Hit itemHit = hitCaptor.getAllValues().get( 1 );
    verifyTransactionHit( order, transactionHit );
    verifyItemHit( order, itemHit );
  }
View Full Code Here


public class HitTest {

  @Test( expected = IllegalArgumentException.class )
  public void testFailsWithNullType() {
    new Hit( null );
  }
View Full Code Here

    new Hit( null );
  }

  @Test( expected = IllegalArgumentException.class )
  public void testFailsWithEmptyType() {
    new Hit( "" );
  }
View Full Code Here

    new Hit( "" );
  }

  @Test
  public void testParameterAreNotNull() {
    Hit hit = new Hit( "foo" );

    Map<String, Object> parameter = hit.getParameter();

    assertNotNull( parameter );
  }
View Full Code Here

    assertNotNull( parameter );
  }

  @Test
  public void testAddsTypeToParameter() {
    Hit hit = new Hit( "foo" );

    Map<String, Object> parameter = hit.getParameter();

    Object type = parameter.get( RequestKeyProvider.getRequestKey( RequestKeys.HIT_TYPE ) );
    assertEquals( "foo", type );
  }
View Full Code Here

TOP

Related Classes of com.eclipsesource.tabris.tracking.internal.analytics.model.hit.Hit

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.