diff options
author | James Moger <james.moger@gitblit.com> | 2011-06-04 14:23:55 -0400 |
---|---|---|
committer | James Moger <james.moger@gitblit.com> | 2011-06-04 14:23:55 -0400 |
commit | 5cc4f299b2a1138687cbaea73257abab08e245a4 (patch) | |
tree | ae2085ad5f91243735f52427e546d4441138d3f4 /tests | |
parent | 4ab184198bd7eac67eb767cf2e19423f618a70ae (diff) | |
download | gitblit-5cc4f299b2a1138687cbaea73257abab08e245a4.tar.gz gitblit-5cc4f299b2a1138687cbaea73257abab08e245a4.zip |
Fixed refs linking problem. Author metrics are lowercase.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/com/gitblit/tests/JGitUtilsTest.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/com/gitblit/tests/JGitUtilsTest.java b/tests/com/gitblit/tests/JGitUtilsTest.java index 7196afdf..6646bf80 100644 --- a/tests/com/gitblit/tests/JGitUtilsTest.java +++ b/tests/com/gitblit/tests/JGitUtilsTest.java @@ -139,7 +139,7 @@ public class JGitUtilsTest extends TestCase { public void testBranches() throws Exception {
Repository repository = GitBlitSuite.getTicgitRepository();
- for (RefModel model : JGitUtils.getLocalBranches(repository, -1)) {
+ for (RefModel model : JGitUtils.getLocalBranches(repository, true, -1)) {
assertTrue(model.getName().startsWith(Constants.R_HEADS));
assertTrue(model.equals(model));
assertFalse(model.equals(""));
@@ -147,7 +147,7 @@ public class JGitUtilsTest extends TestCase { + model.getName().hashCode());
assertTrue(model.getShortMessage().equals(model.getShortMessage()));
}
- for (RefModel model : JGitUtils.getRemoteBranches(repository, -1)) {
+ for (RefModel model : JGitUtils.getRemoteBranches(repository, true, -1)) {
assertTrue(model.getName().startsWith(Constants.R_REMOTES));
assertTrue(model.equals(model));
assertFalse(model.equals(""));
@@ -155,13 +155,13 @@ public class JGitUtilsTest extends TestCase { + model.getName().hashCode());
assertTrue(model.getShortMessage().equals(model.getShortMessage()));
}
- assertTrue(JGitUtils.getRemoteBranches(repository, 10).size() == 10);
+ assertTrue(JGitUtils.getRemoteBranches(repository, true, 10).size() == 10);
repository.close();
}
public void testTags() throws Exception {
Repository repository = GitBlitSuite.getTicgitRepository();
- for (RefModel model : JGitUtils.getTags(repository, -1)) {
+ for (RefModel model : JGitUtils.getTags(repository, true, -1)) {
if (model.getObjectId().getName().equals("283035e4848054ff1803cb0e690270787dc92399")) {
assertTrue("Not an annotated tag!", model.isAnnotatedTag());
}
@@ -174,7 +174,7 @@ public class JGitUtilsTest extends TestCase { repository.close();
repository = GitBlitSuite.getBluezGnomeRepository();
- for (RefModel model : JGitUtils.getTags(repository, -1)) {
+ for (RefModel model : JGitUtils.getTags(repository, true, -1)) {
if (model.getObjectId().getName().equals("728643ec0c438c77e182898c2f2967dbfdc231c8")) {
assertFalse(model.isAnnotatedTag());
assertTrue(model.getAuthorIdent().getEmailAddress().equals("marcel@holtmann.org"));
|