diff options
Diffstat (limited to 'org.eclipse.jgit.junit')
-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; |