diff options
author | Dave Borowitz <dborowitz@google.com> | 2015-03-11 17:14:33 -0700 |
---|---|---|
committer | Dave Borowitz <dborowitz@google.com> | 2015-03-12 12:46:26 -0700 |
commit | 828721826ab61ceef064d57f804db91a4b9a47f3 (patch) | |
tree | f82b83bcb4c671b5229b2a3f89336eb4e2870f98 /org.eclipse.jgit.junit/src | |
parent | da85ca73ff8cf79da3f13542a93794a1929a8f44 (diff) | |
download | jgit-828721826ab61ceef064d57f804db91a4b9a47f3.tar.gz jgit-828721826ab61ceef064d57f804db91a4b9a47f3.zip |
TestRepository: Expose some getters for CommitBuilder
Change-Id: Ic6d179bd2de0081633c22fb82ca68ea619cb686f
Diffstat (limited to 'org.eclipse.jgit.junit/src')
-rw-r--r-- | org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/TestRepository.java | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/TestRepository.java b/org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/TestRepository.java index 6abd34d6f1..a299d144d4 100644 --- a/org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/TestRepository.java +++ b/org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/TestRepository.java @@ -915,6 +915,10 @@ public class TestRepository<R extends Repository> { return this; } + public List<RevCommit> parents() { + return Collections.unmodifiableList(parents); + } + public CommitBuilder noParents() { parents.clear(); return this; @@ -965,6 +969,10 @@ public class TestRepository<R extends Repository> { return this; } + public String message() { + return message; + } + public CommitBuilder tick(int secs) { tick = secs; return this; @@ -981,11 +989,19 @@ public class TestRepository<R extends Repository> { return this; } + public PersonIdent author() { + return author; + } + public CommitBuilder committer(PersonIdent c) { committer = c; return this; } + public PersonIdent committer() { + return committer; + } + public CommitBuilder insertChangeId() { insertChangeId = true; return this; |