Paul Martin
2016-04-27 c2188a840bc4153ae92112b04b2e06a90d3944aa
src/test/java/com/gitblit/tests/PushLogTest.java
@@ -25,17 +25,17 @@
import org.eclipse.jgit.util.FS;
import org.junit.Test;
import com.gitblit.models.PushLogEntry;
import com.gitblit.utils.PushLogUtils;
import com.gitblit.models.RefLogEntry;
import com.gitblit.utils.RefLogUtils;
public class PushLogTest {
public class PushLogTest extends GitblitUnitTest {
   @Test
   public void testPushLog() throws IOException {
      String name = "~james/helloworld.git";
      File gitDir = FileKey.resolve(new File(GitBlitSuite.REPOSITORIES, name), FS.DETECTED);
      Repository repository = new FileRepositoryBuilder().setGitDir(gitDir).build();
      List<PushLogEntry> pushes = PushLogUtils.getPushLog(name, repository);
      List<RefLogEntry> pushes = RefLogUtils.getRefLog(name, repository);
      GitBlitSuite.close(repository);
   }
}