Package rabbit.data.store.model

Examples of rabbit.data.store.model.SessionEvent


    tracker.setEnabled(false);
    long postEnd = System.currentTimeMillis();

    Collection<SessionEvent> data = tracker.getData();
    assertEquals(1, data.size());
    SessionEvent event = data.iterator().next();
    long start = event.getInterval().getStartMillis();
    long end = event.getInterval().getEndMillis();
    checkTime(preStart, start, postStart, preEnd, end, postEnd);
  }
View Full Code Here


    callIdleDetectorToNotify();
    long postEnd = System.currentTimeMillis();

    Collection<SessionEvent> data = tracker.getData();
    assertEquals(1, data.size());
    SessionEvent event = data.iterator().next();
    long start = event.getInterval().getStartMillis();
    long end = event.getInterval().getEndMillis();
    checkTime(preStart, start, postStart, preEnd, end, postEnd);
  }
View Full Code Here

    detector.setRunning(false);
  }

  @Override
  protected SessionEvent createEvent() {
    return new SessionEvent(new Interval(10, 2000));
  }
View Full Code Here

    return new SessionEventConverter();
  }

  @Override
  public void testConvert() throws Exception {
    SessionEvent event = new SessionEvent(new Interval(0, 1));
    SessionEventType type = converter.convert(event);
    assertEquals(event.getInterval().toDurationMillis(), type.getDuration());
   
    event = new SessionEvent(new Interval(0, 1));
    type = converter.convert(event);
    assertEquals(event.getInterval().toDurationMillis(), type.getDuration());
  }
View Full Code Here

public class SessionEventStorerTest extends
    AbstractStorerTest<SessionEvent, SessionEventType, SessionEventListType> {

  @Override
  protected SessionEvent createEvent(DateTime dateTime) throws Exception {
    return new SessionEvent(new Interval(dateTime, dateTime.plus(1)));
  }
View Full Code Here

    return new SessionEvent(new Interval(dateTime, dateTime.plus(1)));
  }

  @Override
  protected SessionEvent createEventDiff(DateTime dateTime) throws Exception {
    return new SessionEvent(new Interval(dateTime, dateTime.plus(2)));
  }
View Full Code Here

*/
public class SessionEventTest extends ContinuousEventTest {

  @Override
  protected ContinuousEvent createEvent(Interval interval) {
    return new SessionEvent(interval);
  }
View Full Code Here

TOP

Related Classes of rabbit.data.store.model.SessionEvent

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.