diff options
author | James Moger <james.moger@gitblit.com> | 2012-06-07 17:30:18 -0400 |
---|---|---|
committer | James Moger <james.moger@gitblit.com> | 2012-06-07 17:30:18 -0400 |
commit | ae9e157ef4e6a3708489725d4436cc15d273308f (patch) | |
tree | 5d93ddebf97927205789d702ae8eebc5e613ff08 /tests/com/gitblit | |
parent | 47867891efc2aa996fa78f7c224e46d65dc04457 (diff) | |
download | gitblit-ae9e157ef4e6a3708489725d4436cc15d273308f.tar.gz gitblit-ae9e157ef4e6a3708489725d4436cc15d273308f.zip |
Try multiple encodings when working with string blobs (issue 97)
Diffstat (limited to 'tests/com/gitblit')
-rw-r--r-- | tests/com/gitblit/tests/JGitUtilsTest.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/com/gitblit/tests/JGitUtilsTest.java b/tests/com/gitblit/tests/JGitUtilsTest.java index 616ea837..dc4d3c50 100644 --- a/tests/com/gitblit/tests/JGitUtilsTest.java +++ b/tests/com/gitblit/tests/JGitUtilsTest.java @@ -37,6 +37,7 @@ import org.eclipse.jgit.lib.PersonIdent; import org.eclipse.jgit.lib.Repository;
import org.eclipse.jgit.lib.RepositoryCache.FileKey;
import org.eclipse.jgit.revwalk.RevCommit;
+import org.eclipse.jgit.revwalk.RevTree;
import org.eclipse.jgit.util.FS;
import org.eclipse.jgit.util.FileUtils;
import org.junit.Test;
@@ -265,7 +266,7 @@ public class JGitUtilsTest { @Test
public void testStringContent() throws Exception {
Repository repository = GitBlitSuite.getHelloworldRepository();
- String contentA = JGitUtils.getStringContent(repository, null, "java.java");
+ String contentA = JGitUtils.getStringContent(repository, (RevTree) null, "java.java");
RevCommit commit = JGitUtils.getCommit(repository, Constants.HEAD);
String contentB = JGitUtils.getStringContent(repository, commit.getTree(), "java.java");
String contentC = JGitUtils.getStringContent(repository, commit.getTree(), "missing.txt");
|