Package org.gitective.core.stat

Examples of org.gitective.core.stat.YearCommitActivity


  /**
   * Unit test of empty {@link YearCommitActivity}
   */
  @Test
  public void emptyYear() {
    YearCommitActivity year = new YearCommitActivity(2000);
    assertEquals(0, year.getCount());
    for (int i = 0; i < YearCommitActivity.MONTHS; i++)
      assertEquals(0, year.getMonthCount(i));
    for (int i = 0; i < YearCommitActivity.DAYS; i++)
      assertEquals(0, year.getDayCount(i));
    for (int i = 0; i < YearCommitActivity.HOURS; i++)
      assertEquals(0, year.getHourCount(i));
  }
View Full Code Here


    assertEquals(1, cal.getDays()[day]);
    assertEquals(1, cal.getMonths()[month]);
    assertEquals(1, cal.getHours()[hour]);

    assertEquals(1, cal.getYears().length);
    YearCommitActivity year = cal.getYears()[0];
    assertEquals(1, year.getCount());
    assertEquals(commitTime.get(Calendar.YEAR), year.getYear());
    assertNotNull(year.getMonths());
    assertEquals(1, year.getMonths()[month]);
    assertEquals(1, year.getMonthCount(Month.month(month)));
    assertNotNull(year.getDays());
    assertEquals(1, year.getDays()[day]);
    assertNotNull(year.getHours());
    assertEquals(1, year.getHours()[hour]);
  }
View Full Code Here

TOP

Related Classes of org.gitective.core.stat.YearCommitActivity

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.