James Moger
2011-04-18 9bc17d16ea48a7978b198126d346828b1d24fe4e
src/com/gitblit/tests/JGitUtilsTest.java
@@ -15,9 +15,9 @@
import org.eclipse.jgit.storage.file.FileRepository;
import com.gitblit.utils.JGitUtils;
import com.gitblit.wicket.models.PathModel;
import com.gitblit.wicket.models.PathModel.PathChangeModel;
import com.gitblit.wicket.models.RefModel;
import com.gitblit.wicket.models.TicGitTicket;
import com.gitblit.wicket.models.TicketModel;
public class JGitUtilsTest extends TestCase {
@@ -72,9 +72,9 @@
   public void testTicGit() throws Exception {
      Repository r = new FileRepository(new File(repositoriesFolder, "ticgit") + "/" + Constants.DOT_GIT);
      RefModel ticgit = JGitUtils.getTicGitBranch(r);
      RefModel ticgit = JGitUtils.getTicketsBranch(r);
      assertTrue("Ticgit branch does not exist!", ticgit != null);
      List<TicGitTicket> tickets = JGitUtils.getTicGitTickets(r);
      List<TicketModel> tickets = JGitUtils.getTickets(r);
      assertTrue("No tickets found!", tickets.size() > 0);
      r.close();
   }
@@ -82,11 +82,11 @@
   public void testFilesInCommit() throws Exception {
      Repository r = getRepository();
      RevCommit commit = JGitUtils.getCommit(r, Constants.HEAD);
      List<PathModel> paths = JGitUtils.getFilesInCommit(r, commit);
      List<PathChangeModel> paths = JGitUtils.getFilesInCommit(r, commit);
      r.close();
      assertTrue("No changed paths found!", paths.size() > 0);
   }
   public void testCommitDiff() throws Exception {
      Repository r = getRepository();
      RevCommit commit = JGitUtils.getCommit(r, Constants.HEAD);