Package com.voyagegames.java.tracking

Examples of com.voyagegames.java.tracking.BasicAccumulator


    assertTrue(data == acc.getTrackingData().get(0));
  }

  @Test
  public void testTrackCustomEvent() {
    final BasicAccumulator acc = new BasicAccumulator();
    final CustomEvent data = new CustomEvent("testkey", "testvalue");
   
    assertTrue(0 == acc.getTrackingData().size());
    acc.trackCustomEvent(data);
    assertTrue(1 == acc.getTrackingData().size());
    assertTrue(data == acc.getTrackingData().get(0));
  }
View Full Code Here


    assertTrue(data == acc.getTrackingData().get(0));
  }

  @Test
  public void testTrackCustomSetting() {
    final BasicAccumulator acc = new BasicAccumulator();
    final CustomSetting data = new CustomSetting("testkey", "testvalue");
   
    assertTrue(0 == acc.getTrackingData().size());
    acc.trackCustomSetting(data);
    assertTrue(1 == acc.getTrackingData().size());
    assertTrue(data == acc.getTrackingData().get(0));
  }
View Full Code Here

    assertTrue(data == acc.getTrackingData().get(0));
  }

  @Test
  public void testTrackUserAction() {
    final BasicAccumulator acc = new BasicAccumulator();
    final UserAction data = new UserAction("testkey", "testvalue");
   
    assertTrue(0 == acc.getTrackingData().size());
    acc.trackUserAction(data);
    assertTrue(1 == acc.getTrackingData().size());
    assertTrue(data == acc.getTrackingData().get(0));
  }
View Full Code Here

    assertTrue(data == acc.getTrackingData().get(0));
  }

  @Test
  public void testTrackUserView() {
    final BasicAccumulator acc = new BasicAccumulator();
    final UserView data = new UserView("testkey", "testvalue");
   
    assertTrue(0 == acc.getTrackingData().size());
    acc.trackUserView(data);
    assertTrue(1 == acc.getTrackingData().size());
    assertTrue(data == acc.getTrackingData().get(0));
  }
View Full Code Here

TOP

Related Classes of com.voyagegames.java.tracking.BasicAccumulator

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.