summaryrefslogtreecommitdiffstats
path: root/src/com/gitblit/tests/JGitUtilsTest.java
diff options
context:
space:
mode:
authorJames Moger <james.moger@gitblit.com>2011-04-05 22:26:37 -0400
committerJames Moger <james.moger@gitblit.com>2011-04-05 22:26:37 -0400
commit232890f03476b8bb231d17883eb0faff93ec5049 (patch)
treecf558e7d72095a2735b52cea516c26175279de27 /src/com/gitblit/tests/JGitUtilsTest.java
parentce33be67c4c8c783713ad51c187e8296ed71f233 (diff)
downloadgitblit-232890f03476b8bb231d17883eb0faff93ec5049.tar.gz
gitblit-232890f03476b8bb231d17883eb0faff93ec5049.zip
Simplified links some more. Added TicGit browser.
Diffstat (limited to 'src/com/gitblit/tests/JGitUtilsTest.java')
-rw-r--r--src/com/gitblit/tests/JGitUtilsTest.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/com/gitblit/tests/JGitUtilsTest.java b/src/com/gitblit/tests/JGitUtilsTest.java
index c04ceefd..6c398401 100644
--- a/src/com/gitblit/tests/JGitUtilsTest.java
+++ b/src/com/gitblit/tests/JGitUtilsTest.java
@@ -15,6 +15,8 @@ import org.eclipse.jgit.revwalk.RevTree;
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 @@ public class JGitUtilsTest extends TestCase {
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();
+ }
}