Package com.agiletec.plugins.jpstats.aps.util

Examples of com.agiletec.plugins.jpstats.aps.util.CalendarConverter


    return statsRecord;
  }
 
  public void testGetHitsByInterval() throws ApsSystemException{
    TimeSeries result = null;
    CalendarConverter converter = new CalendarConverter();
    Calendar initialDate = converter.getCalendarDay("06/03/2007", 0, 0, 0, 0);
    Calendar finalDate = converter.getCalendarDay("10/03/2007", 23, 59, 59, 999);
    try{
      result = _statsDAO.getHitsByInterval(initialDate,finalDate);
    } catch (Throwable t) {
      throw new ApsSystemException("error in get hits by interval", t);
    }
View Full Code Here


    assertNotNull(result);
  }
 
  public void testGetAverageTimeSite() throws ApsSystemException{
    String result = null;
    CalendarConverter converter = new CalendarConverter();
    Calendar initialDate = converter.getCalendarDay("06/03/2007", 0, 0, 0, 0);
    Calendar finalDate = converter.getCalendarDay("10/03/2007", 23, 59, 59, 999);
    try{
      result = _statsDAO.getAverageTimeSite(initialDate,finalDate);
    } catch (Throwable t) {
      throw new ApsSystemException("error in get average time site", t);
    }
View Full Code Here

    assertNotNull(result);
  }

  public void testGetAverageTimePage() throws ApsSystemException{
    String result = null;
    CalendarConverter converter = new CalendarConverter();
    Calendar initialDate = converter.getCalendarDay("06/03/2007", 0, 0, 0, 0);
    Calendar finalDate = converter.getCalendarDay("10/03/2007", 23, 59, 59, 999);
    try {
      result = _statsDAO.getAverageTimePage(initialDate,finalDate);
    } catch (Throwable t) {
      throw new ApsSystemException("error in get average time site", t);
    }
View Full Code Here

    assertNotNull(result);
  }

  public void testGetNumPageSession() throws ApsSystemException{
    int result;
    CalendarConverter converter = new CalendarConverter();
    Calendar initialDate = converter.getCalendarDay("06/03/2007", 0, 0, 0, 0);
    Calendar finalDate = converter.getCalendarDay("10/03/2007", 23, 59, 59, 999);
    try{
      result = _statsDAO.getNumPageSession(initialDate,finalDate);
    } catch (Throwable t) {
      throw new ApsSystemException("error in get average time site", t);
    }
View Full Code Here

    assertTrue(result >= 0);
  }
 
  public void testGetPageVisitedDesc() throws ApsSystemException{
    Map result = null;
    CalendarConverter converter = new CalendarConverter();
    Calendar initialDate = converter.getCalendarDay("06/03/2007", 0, 0, 0, 0);
    Calendar finalDate = converter.getCalendarDay("10/03/2007", 23, 59, 59, 999);
    try{
      result = _statsDAO.getTopPages(initialDate,finalDate);
    } catch (Throwable t) {
      throw new ApsSystemException("error in get average time site", t);
    }
View Full Code Here

    assertNotNull(result);
  }

  public void testGetTopContents() throws ApsSystemException{
    Map result = null;
    CalendarConverter converter = new CalendarConverter();
    Calendar initialDate = converter.getCalendarDay("06/03/2007", 0, 0, 0, 0);
    Calendar finalDate = converter.getCalendarDay("10/03/2007", 23, 59, 59, 999);
    try {
      result = _statsDAO.getTopContents(initialDate, finalDate);
    } catch (Throwable t) {
      throw new ApsSystemException("error in get average time site", t);
    }
View Full Code Here

    assertNotNull(firstDay);
  }
 
  public void testGetIPByDateInterval() throws ApsSystemException{
    Map result = null;
    CalendarConverter converter = new CalendarConverter();
    Calendar initialDate = converter.getCalendarDay("06/03/2007", 0, 0, 0, 0);
    Calendar finalDate = converter.getCalendarDay("10/03/2007", 23, 59, 59, 999);
    try{
      result = _statsDAO.getIPByDateInterval(initialDate,finalDate);
    }catch (Throwable t) {
      throw new ApsSystemException("error in get average time site", t);
    }
View Full Code Here

TOP

Related Classes of com.agiletec.plugins.jpstats.aps.util.CalendarConverter

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.