Beispiel #1
0
  /**
   * Skontroluj deserializaciu a stiahnutie eventov v ramci obdobia
   *
   * @throws Exception
   */
  public void testGetEvents() throws Exception {
    Configuration.getInstance();
    EventsRequest request = new EventsRequest();
    Date start = DateUtils.fromString("2014-01-01T00:00:00.000Z");
    Date end = DateUtils.fromString("2014-03-01T00:00:00.000Z");
    request.setTime(start, end);

    ImmutableList<EventDto> response = ActivityService.getInstance().getEvents(request);
    Assert.assertNotNull(response);
    Assert.assertFalse(response.isEmpty());
  }
Beispiel #2
0
 /**
  * Skontroluj deserializaciu a stiahnutie konkretneho eventu
  *
  * @throws Exception
  */
 public void testGetEvent() throws Exception {
   Configuration.getInstance();
   EventDto dto = ActivityService.getInstance().getEvent("68119af1-ebc3-4dc6-bab5-b6a7b1f03aad");
   Assert.assertNotNull(dto);
 }