Browse Source

TestRepository: Expose some getters for CommitBuilder

Change-Id: Ic6d179bd2de0081633c22fb82ca68ea619cb686f
stable-4.0
Dave Borowitz 10 years ago
parent
commit
828721826a
  1. 16
      org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/TestRepository.java

16
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;

Loading…
Cancel
Save