public class ResolveMergerTest extends RepositoryTestCase
Modifier and Type | Field and Description |
---|---|
static MergeStrategy |
recursive |
static MergeStrategy |
resolve |
db, trash
ASSUME_UNCHANGED, author, committer, CONTENT, CONTENT_ID, LENGTH, mockSystemReader, MOD_TIME, SMUDGE
Constructor and Description |
---|
ResolveMergerTest() |
Modifier and Type | Method and Description |
---|---|
void |
checkFileReplacedByFolderInOurs(MergeStrategy strategy)
A tracked file is replaced by a folder in OURS.
|
void |
checkFileReplacedByFolderInTheirs(MergeStrategy strategy)
A tracked file is replaced by a folder in THEIRS.
|
void |
checkForCorrectIndex(MergeStrategy strategy) |
void |
checkLockedFilesToBeDeleted(MergeStrategy strategy) |
void |
checkMergeConflictingFilesWithTreeInIndex(MergeStrategy strategy)
Merging two conflicting files when the index contains a tree for that
path should lead to a failed state.
|
void |
checkMergeConflictingNewTrees(MergeStrategy strategy)
Merging two conflicting subtrees when the index and HEAD does not contain
any file in that subtree should lead to a conflicting state.
|
void |
checkMergeConflictingTreesWithoutIndex(MergeStrategy strategy)
Merging two conflicting subtrees when the index does not contain any file
in that subtree should lead to a conflicting state.
|
void |
checkMergeCrissCross(MergeStrategy strategy)
Merging after criss-cross merges.
|
void |
checkMergeEqualNewTrees(MergeStrategy strategy)
Merging two equal subtrees when the index and HEAD does not contain any
file in that subtree should lead to a merged state.
|
void |
checkMergeEqualTreesInCore(MergeStrategy strategy)
Merging two equal subtrees with an incore merger should lead to a merged
state (The 'Gerrit' use case).
|
void |
checkMergeEqualTreesWithoutIndex(MergeStrategy strategy)
Merging two equal subtrees when the index does not contain any file in
that subtree should lead to a merged state.
|
void |
checkMergeMergeableFilesWithTreeInIndex(MergeStrategy strategy)
Merging two equal files when the index contains a tree for that path
should lead to a failed state.
|
void |
checkMergeMergeableTreesWithoutIndex(MergeStrategy strategy)
Merging two different but mergeable subtrees when the index does not
contain any file in that subtree should lead to a merged state.
|
void |
checkUntrackedEmpytFolderIsNotAConflictWithFile(MergeStrategy strategy)
An existing directory without tracked content should not prevent merging
a file with that name.
|
void |
checkUntrackedFolderIsNotAConflict(MergeStrategy strategy)
An existing directory without tracked content should not prevent merging
a tree where that directory exists.
|
void |
failingDeleteOfDirectoryWithUntrackedContent(MergeStrategy strategy) |
void |
mergeWithCrlfInWT(MergeStrategy strategy) |
assertEqualsFile, check, checkFile, checkoutBranch, commitFile, copyFile, createBranch, createEntry, createEntry, createEntry, deleteTrashFile, fsTick, indexState, lookup, read, resetIndex, setUp, slashify, writeLink, writeTrashFile, writeTrashFile, writeTrashFiles
addRepoToClose, createBareRepository, createRepository, createTempDirectory, createTempFile, createUniqueTestGitDir, createWorkRepository, getCeilings, getTemporaryDirectory, indexState, read, recursiveDelete, runHook, tearDown, tick, write, write
public static MergeStrategy resolve
public static MergeStrategy recursive
public void failingDeleteOfDirectoryWithUntrackedContent(MergeStrategy strategy) throws Exception
Exception
public void checkMergeConflictingTreesWithoutIndex(MergeStrategy strategy) throws Exception
strategy
- Exception
public void checkMergeMergeableTreesWithoutIndex(MergeStrategy strategy) throws Exception
strategy
- Exception
public void checkUntrackedFolderIsNotAConflict(MergeStrategy strategy) throws Exception
strategy
- Exception
public void checkFileReplacedByFolderInTheirs(MergeStrategy strategy) throws Exception
strategy
- Exception
public void checkFileReplacedByFolderInOurs(MergeStrategy strategy) throws Exception
strategy
- Exception
public void checkUntrackedEmpytFolderIsNotAConflictWithFile(MergeStrategy strategy) throws Exception
strategy
- Exception
public void mergeWithCrlfInWT(MergeStrategy strategy) throws IOException, GitAPIException
IOException
GitAPIException
public void checkMergeEqualTreesWithoutIndex(MergeStrategy strategy) throws Exception
strategy
- Exception
public void checkMergeEqualTreesInCore(MergeStrategy strategy) throws Exception
strategy
- Exception
public void checkMergeEqualNewTrees(MergeStrategy strategy) throws Exception
strategy
- Exception
public void checkMergeConflictingNewTrees(MergeStrategy strategy) throws Exception
strategy
- Exception
public void checkMergeConflictingFilesWithTreeInIndex(MergeStrategy strategy) throws Exception
strategy
- Exception
public void checkMergeMergeableFilesWithTreeInIndex(MergeStrategy strategy) throws Exception
strategy
- Exception
public void checkMergeCrissCross(MergeStrategy strategy) throws Exception
strategy
- Exception
public void checkLockedFilesToBeDeleted(MergeStrategy strategy) throws Exception
Exception
public void checkForCorrectIndex(MergeStrategy strategy) throws Exception
Exception
Copyright © 2018 Eclipse JGit Project. All rights reserved.