From 232890f03476b8bb231d17883eb0faff93ec5049 Mon Sep 17 00:00:00 2001 From: James Moger <james.moger@gitblit.com> Date: Tue, 05 Apr 2011 22:26:37 -0400 Subject: [PATCH] Simplified links some more. Added TicGit browser. --- src/com/gitblit/tests/JGitUtilsTest.java | 11 +++++++++++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/src/com/gitblit/tests/JGitUtilsTest.java b/src/com/gitblit/tests/JGitUtilsTest.java index c04ceef..6c39840 100644 --- a/src/com/gitblit/tests/JGitUtilsTest.java +++ b/src/com/gitblit/tests/JGitUtilsTest.java @@ -15,6 +15,8 @@ import org.eclipse.jgit.storage.file.FileRepository; import com.gitblit.utils.JGitUtils; +import com.gitblit.utils.TicGitTicket; +import com.gitblit.wicket.models.RefModel; public class JGitUtilsTest extends TestCase { @@ -67,5 +69,14 @@ r.close(); assertTrue("Content is null!", content != null); } + + public void testTicGit() throws Exception { + Repository r = new FileRepository(new File(repositoriesFolder, "ticgit") + "/" + Constants.DOT_GIT); + RefModel ticgit = JGitUtils.getTicGitBranch(r); + assertTrue("Ticgit branch does not exist!", ticgit != null); + List<TicGitTicket> tickets = JGitUtils.getTicGitTickets(r); + assertTrue("No tickets found!", tickets.size() > 0); + r.close(); + } } -- Gitblit v1.9.1