public abstract class RevWalkTestCase extends RepositoryTestCase
RevWalk
class.Modifier and Type | Field and Description |
---|---|
protected RevWalk |
rw |
db, trash
ASSUME_UNCHANGED, author, committer, CONTENT, CONTENT_ID, LENGTH, mockSystemReader, MOD_TIME, SMUDGE
Constructor and Description |
---|
RevWalkTestCase() |
Modifier and Type | Method and Description |
---|---|
protected void |
assertCommit(RevCommit exp,
RevCommit act) |
protected RevBlob |
blob(String content) |
protected RevCommit |
commit(int secDelta,
RevCommit... parents) |
protected RevCommit |
commit(int secDelta,
RevTree tree,
RevCommit... parents) |
protected RevCommit |
commit(RevCommit... parents) |
protected RevCommit |
commit(RevTree tree,
RevCommit... parents) |
protected TestRepository.CommitBuilder |
commitBuilder() |
protected RevWalk |
createRevWalk() |
protected DirCacheEntry |
file(String path,
RevBlob blob) |
protected RevObject |
get(RevTree tree,
String path) |
protected Date |
getDate() |
protected void |
markStart(RevCommit commit) |
protected void |
markUninteresting(RevCommit commit) |
protected <T extends RevObject> |
parseBody(T t) |
void |
setUp() |
protected RevTag |
tag(String name,
RevObject dst) |
protected void |
tick(int secDelta) |
protected RevTree |
tree(DirCacheEntry... entries) |
assertEqualsFile, check, checkFile, checkoutBranch, commitFile, copyFile, createBranch, createEntry, createEntry, createEntry, deleteTrashFile, fsTick, indexState, lookup, read, resetIndex, slashify, writeLink, writeTrashFile, writeTrashFile, writeTrashFiles
addRepoToClose, createBareRepository, createTempDirectory, createTempFile, createUniqueTestGitDir, createWorkRepository, getCeilings, getTemporaryDirectory, indexState, read, recursiveDelete, runHook, tearDown, tick, write, write
protected RevWalk rw
public void setUp() throws Exception
setUp
in class RepositoryTestCase
Exception
protected RevWalk createRevWalk()
protected Date getDate()
protected void tick(int secDelta)
protected DirCacheEntry file(String path, RevBlob blob) throws Exception
Exception
protected RevTree tree(DirCacheEntry... entries) throws Exception
Exception
protected RevCommit commit(RevTree tree, RevCommit... parents) throws Exception
Exception
protected RevCommit commit(int secDelta, RevCommit... parents) throws Exception
Exception
protected RevCommit commit(int secDelta, RevTree tree, RevCommit... parents) throws Exception
Exception
protected TestRepository.CommitBuilder commitBuilder() throws Exception
Exception
protected void markUninteresting(RevCommit commit) throws Exception
Exception
Copyright © 2016 Eclipse JGit Project. All rights reserved.