From 828721826ab61ceef064d57f804db91a4b9a47f3 Mon Sep 17 00:00:00 2001 From: Dave Borowitz Date: Wed, 11 Mar 2015 17:14:33 -0700 Subject: [PATCH] TestRepository: Expose some getters for CommitBuilder Change-Id: Ic6d179bd2de0081633c22fb82ca68ea619cb686f --- .../org/eclipse/jgit/junit/TestRepository.java | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) 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 6abd34d6f..a299d144d 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 CommitBuilder parent(RevCommit p) throws Exception { return this; } + public List parents() { + return Collections.unmodifiableList(parents); + } + public CommitBuilder noParents() { parents.clear(); return this; @@ -965,6 +969,10 @@ public CommitBuilder message(String m) { return this; } + public String message() { + return message; + } + public CommitBuilder tick(int secs) { tick = secs; return this; @@ -981,11 +989,19 @@ public CommitBuilder author(PersonIdent a) { 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;