Package com.voyagegames.java.tracking

Examples of com.voyagegames.java.tracking.JsonDispatcherConfig


   
  }

  @Test
  public void testDispatch() {
    final JsonDispatcherConfig config = new JsonDispatcherConfig();
    config.callback = new TestDispatchCallback();
   
    final JsonDispatcher disp = new JsonDispatcher(config);

    assertTrue(!disp.dispatch());
View Full Code Here


  }

  @Test
  public void testDispatchIAccumulator() {
    final BasicAccumulator acc = new BasicAccumulator();
    final JsonDispatcherConfig config = new JsonDispatcherConfig();
    final TestDispatchCallback callback = new TestDispatchCallback();
    final AppEvent event = new AppEvent("testkey", "testvalue");

    acc.trackAppEvent(event);
    config.callback = callback;
View Full Code Here

  }

  @Test
  public void testDispatchIAccumulator_noCompression() {
    final BasicAccumulator acc = new BasicAccumulator();
    final JsonDispatcherConfig config = new JsonDispatcherConfig();
    final TestDispatchCallback callback = new TestDispatchCallback();
    final AppEvent event = new AppEvent("testkey", "testvalue");

    acc.trackAppEvent(event);
    config.callback = callback;
View Full Code Here

  }

  @Test
  public void testDispatchIAccumulator_withHeader() {
    final BasicAccumulator acc = new BasicAccumulator();
    final JsonDispatcherConfig config = new JsonDispatcherConfig();
    final TestDispatchCallback callback = new TestDispatchCallback();
    final AppEvent header = new AppEvent("testheader", "testheadervalue");
    final AppEvent event = new AppEvent("testkey", "testvalue");

    acc.trackAppEvent(event);
View Full Code Here

  }

  @Test
  public void testDispatchIAccumulator_noUrl() {
    final BasicAccumulator acc = new BasicAccumulator();
    final JsonDispatcherConfig config = new JsonDispatcherConfig();
    final TestDispatchCallback callback = new TestDispatchCallback();

    acc.trackAppEvent(new AppEvent("testkey", "testvalue"));
    config.callback = callback;
   
View Full Code Here

  }

  @Test
  public void testDispatchIAccumulator_maxUploadSize() {
    final BasicAccumulator acc = new BasicAccumulator();
    final JsonDispatcherConfig config = new JsonDispatcherConfig();
    final TestDispatchCallback callback = new TestDispatchCallback();

    acc.trackAppEvent(new AppEvent("testkey", "testvalue"));
    config.callback = callback;
    config.url = "testurl";
View Full Code Here

TOP

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

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.