Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShawn O. Pearce2010-08-23 13:15:37 -0400
committerShawn O. Pearce2010-08-23 14:09:56 -0400
commitf01b3b007c43adc1ac7c9b3c876453a868f85bbe (patch)
tree002f2f37e9b35411ba474651ad281d78d5687489 /org.eclipse.egit.core.test
parent30157f169e58566f526b33f86032125ad82d75a4 (diff)
downloadegit-f01b3b007c43adc1ac7c9b3c876453a868f85bbe.tar.gz
egit-f01b3b007c43adc1ac7c9b3c876453a868f85bbe.tar.xz
egit-f01b3b007c43adc1ac7c9b3c876453a868f85bbe.zip
Adapt to JGit's CommitBuilder, TagBuilder API change
Change-Id: I5d69fca2b8a168b68df7d93b23f5705c49638011 Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Diffstat (limited to 'org.eclipse.egit.core.test')
-rw-r--r--org.eclipse.egit.core.test/src/org/eclipse/egit/core/test/internal/mapping/HistoryTest.java6
-rw-r--r--org.eclipse.egit.core.test/src/org/eclipse/egit/core/test/op/ConnectProviderOperationTest.java4
-rw-r--r--org.eclipse.egit.core.test/src/org/eclipse/egit/core/test/op/TagOperationTest.java4
3 files changed, 7 insertions, 7 deletions
diff --git a/org.eclipse.egit.core.test/src/org/eclipse/egit/core/test/internal/mapping/HistoryTest.java b/org.eclipse.egit.core.test/src/org/eclipse/egit/core/test/internal/mapping/HistoryTest.java
index 85ea43f9a..9113b8cd9 100644
--- a/org.eclipse.egit.core.test/src/org/eclipse/egit/core/test/internal/mapping/HistoryTest.java
+++ b/org.eclipse.egit.core.test/src/org/eclipse/egit/core/test/internal/mapping/HistoryTest.java
@@ -23,7 +23,7 @@ import org.eclipse.core.runtime.NullProgressMonitor;
import org.eclipse.egit.core.GitProvider;
import org.eclipse.egit.core.op.ConnectProviderOperation;
import org.eclipse.egit.core.test.GitTestCase;
-import org.eclipse.jgit.lib.Commit;
+import org.eclipse.jgit.lib.CommitBuilder;
import org.eclipse.jgit.lib.Constants;
import org.eclipse.jgit.lib.FileTreeEntry;
import org.eclipse.jgit.lib.ObjectId;
@@ -78,7 +78,7 @@ public class HistoryTest extends GitTestCase {
addFile(projectTree,project1_b_txt);
projectTree.setId(objectWriter.writeTree(projectTree));
tree.setId(objectWriter.writeTree(tree));
- Commit commit = new Commit();
+ CommitBuilder commit = new CommitBuilder();
commit.setAuthor(new PersonIdent(jauthor, new Date(0L), TimeZone
.getTimeZone("GMT+1")));
commit.setCommitter(new PersonIdent(jcommitter, new Date(0L), TimeZone
@@ -95,7 +95,7 @@ public class HistoryTest extends GitTestCase {
addFile(projectTree,project1_b_v2_txt);
projectTree.setId(objectWriter.writeTree(projectTree));
tree.setId(objectWriter.writeTree(tree));
- commit = new Commit();
+ commit = new CommitBuilder();
commit.setAuthor(new PersonIdent(jauthor, new Date(0L), TimeZone
.getTimeZone("GMT+1")));
commit.setCommitter(new PersonIdent(jcommitter, new Date(0L), TimeZone
diff --git a/org.eclipse.egit.core.test/src/org/eclipse/egit/core/test/op/ConnectProviderOperationTest.java b/org.eclipse.egit.core.test/src/org/eclipse/egit/core/test/op/ConnectProviderOperationTest.java
index 73289a298..312bc0ce8 100644
--- a/org.eclipse.egit.core.test/src/org/eclipse/egit/core/test/op/ConnectProviderOperationTest.java
+++ b/org.eclipse.egit.core.test/src/org/eclipse/egit/core/test/op/ConnectProviderOperationTest.java
@@ -24,7 +24,7 @@ import org.eclipse.core.resources.IFile;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.egit.core.op.ConnectProviderOperation;
import org.eclipse.egit.core.test.GitTestCase;
-import org.eclipse.jgit.lib.Commit;
+import org.eclipse.jgit.lib.CommitBuilder;
import org.eclipse.jgit.lib.Constants;
import org.eclipse.jgit.lib.FileTreeEntry;
import org.eclipse.jgit.lib.ObjectId;
@@ -84,7 +84,7 @@ public class ConnectProviderOperationTest extends GitTestCase {
srcTree.setId(writer.writeTree(srcTree));
prjTree.setId(writer.writeTree(prjTree));
rootTree.setId(writer.writeTree(rootTree));
- Commit commit = new Commit();
+ CommitBuilder commit = new CommitBuilder();
commit.setTreeId(rootTree.getTreeId());
commit.setAuthor(new PersonIdent("J. Git", "j.git@egit.org", new Date(
60876075600000L), TimeZone.getTimeZone("GMT+1")));
diff --git a/org.eclipse.egit.core.test/src/org/eclipse/egit/core/test/op/TagOperationTest.java b/org.eclipse.egit.core.test/src/org/eclipse/egit/core/test/op/TagOperationTest.java
index 56efa3984..ed6248b76 100644
--- a/org.eclipse.egit.core.test/src/org/eclipse/egit/core/test/op/TagOperationTest.java
+++ b/org.eclipse.egit.core.test/src/org/eclipse/egit/core/test/op/TagOperationTest.java
@@ -30,7 +30,7 @@ import org.eclipse.egit.core.test.TestUtils;
import org.eclipse.jgit.lib.Constants;
import org.eclipse.jgit.lib.PersonIdent;
import org.eclipse.jgit.lib.Ref;
-import org.eclipse.jgit.lib.Tag;
+import org.eclipse.jgit.lib.TagBuilder;
import org.eclipse.jgit.revwalk.RevTag;
import org.eclipse.jgit.revwalk.RevWalk;
import org.junit.After;
@@ -91,7 +91,7 @@ public class TagOperationTest extends DualRepositoryTestCase {
public void addTag() throws Exception {
assertTrue("Tags should be empty", repository1.getRepository()
.getTags().isEmpty());
- Tag newTag = new Tag();
+ TagBuilder newTag = new TagBuilder();
newTag.setTag("TheNewTag");
newTag.setMessage("Well, I'm the tag");
newTag.setTagger(new PersonIdent(TestUtils.AUTHOR));

Back to the top