James Moger
2014-09-06 fc3a39d464b1303f0b7d01d0160f81cbbb80a98b
src/test/java/com/gitblit/tests/TimeUtilsTest.java
@@ -15,16 +15,13 @@
 */
package com.gitblit.tests;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import java.util.Date;
import org.junit.Test;
import com.gitblit.utils.TimeUtils;
public class TimeUtilsTest {
public class TimeUtilsTest extends GitblitUnitTest {
   private Date offset(long subtract) {
      return new Date(System.currentTimeMillis() - subtract);
@@ -43,12 +40,12 @@
   @Test
   public void testToday() throws Exception {
      assertTrue(TimeUtils.isToday(new Date()));
      assertTrue(TimeUtils.isToday(new Date(), null));
   }
   @Test
   public void testYesterday() throws Exception {
      assertTrue(TimeUtils.isYesterday(offset(TimeUtils.ONEDAY)));
      assertTrue(TimeUtils.isYesterday(offset(TimeUtils.ONEDAY), null));
   }
   @Test