public class ResolveMergerTest
extends org.eclipse.jgit.junit.RepositoryTestCase
Modifier and Type | Field and Description |
---|---|
static org.eclipse.jgit.merge.MergeStrategy |
recursive |
static org.eclipse.jgit.merge.MergeStrategy |
resolve |
Constructor and Description |
---|
ResolveMergerTest() |
Modifier and Type | Method and Description |
---|---|
void |
checkFileReplacedByFolderInOurs(org.eclipse.jgit.merge.MergeStrategy strategy)
A tracked file is replaced by a folder in OURS.
|
void |
checkFileReplacedByFolderInTheirs(org.eclipse.jgit.merge.MergeStrategy strategy)
A tracked file is replaced by a folder in THEIRS.
|
void |
checkForCorrectIndex(org.eclipse.jgit.merge.MergeStrategy strategy) |
void |
checkLockedFilesToBeDeleted(org.eclipse.jgit.merge.MergeStrategy strategy) |
void |
checkMergeConflictingFilesWithTreeInIndex(org.eclipse.jgit.merge.MergeStrategy strategy)
Merging two conflicting files when the index contains a tree for that
path should lead to a failed state.
|
void |
checkMergeConflictingNewTrees(org.eclipse.jgit.merge.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(org.eclipse.jgit.merge.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(org.eclipse.jgit.merge.MergeStrategy strategy)
Merging after criss-cross merges.
|
void |
checkMergeEqualNewTrees(org.eclipse.jgit.merge.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(org.eclipse.jgit.merge.MergeStrategy strategy)
Merging two equal subtrees with an incore merger should lead to a merged
state (The 'Gerrit' use case).
|
void |
checkMergeEqualTreesWithoutIndex(org.eclipse.jgit.merge.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(org.eclipse.jgit.merge.MergeStrategy strategy)
Merging two equal files when the index contains a tree for that path
should lead to a failed state.
|
void |
checkMergeMergeableTreesWithoutIndex(org.eclipse.jgit.merge.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(org.eclipse.jgit.merge.MergeStrategy strategy)
An existing directory without tracked content should not prevent merging
a file with that name.
|
void |
checkUntrackedFolderIsNotAConflict(org.eclipse.jgit.merge.MergeStrategy strategy)
An existing directory without tracked content should not prevent merging
a tree where that directory exists.
|
void |
failingDeleteOfDirectoryWithUntrackedContent(org.eclipse.jgit.merge.MergeStrategy strategy) |
void |
mergeWithCrlfInWT(org.eclipse.jgit.merge.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, createTempDirectory, createTempFile, createUniqueTestGitDir, createWorkRepository, getCeilings, getTemporaryDirectory, indexState, read, recursiveDelete, runHook, tearDown, tick, write, write
public static org.eclipse.jgit.merge.MergeStrategy resolve
public static org.eclipse.jgit.merge.MergeStrategy recursive
public void failingDeleteOfDirectoryWithUntrackedContent(org.eclipse.jgit.merge.MergeStrategy strategy) throws Exception
Exception
public void checkMergeConflictingTreesWithoutIndex(org.eclipse.jgit.merge.MergeStrategy strategy) throws Exception
strategy
- Exception
public void checkMergeMergeableTreesWithoutIndex(org.eclipse.jgit.merge.MergeStrategy strategy) throws Exception
strategy
- Exception
public void checkUntrackedFolderIsNotAConflict(org.eclipse.jgit.merge.MergeStrategy strategy) throws Exception
strategy
- Exception
public void checkFileReplacedByFolderInTheirs(org.eclipse.jgit.merge.MergeStrategy strategy) throws Exception
strategy
- Exception
public void checkFileReplacedByFolderInOurs(org.eclipse.jgit.merge.MergeStrategy strategy) throws Exception
strategy
- Exception
public void checkUntrackedEmpytFolderIsNotAConflictWithFile(org.eclipse.jgit.merge.MergeStrategy strategy) throws Exception
strategy
- Exception
public void mergeWithCrlfInWT(org.eclipse.jgit.merge.MergeStrategy strategy) throws IOException, org.eclipse.jgit.api.errors.GitAPIException
IOException
org.eclipse.jgit.api.errors.GitAPIException
public void checkMergeEqualTreesWithoutIndex(org.eclipse.jgit.merge.MergeStrategy strategy) throws Exception
strategy
- Exception
public void checkMergeEqualTreesInCore(org.eclipse.jgit.merge.MergeStrategy strategy) throws Exception
strategy
- Exception
public void checkMergeEqualNewTrees(org.eclipse.jgit.merge.MergeStrategy strategy) throws Exception
strategy
- Exception
public void checkMergeConflictingNewTrees(org.eclipse.jgit.merge.MergeStrategy strategy) throws Exception
strategy
- Exception
public void checkMergeConflictingFilesWithTreeInIndex(org.eclipse.jgit.merge.MergeStrategy strategy) throws Exception
strategy
- Exception
public void checkMergeMergeableFilesWithTreeInIndex(org.eclipse.jgit.merge.MergeStrategy strategy) throws Exception
strategy
- Exception
public void checkMergeCrissCross(org.eclipse.jgit.merge.MergeStrategy strategy) throws Exception
strategy
- Exception
public void checkLockedFilesToBeDeleted(org.eclipse.jgit.merge.MergeStrategy strategy) throws Exception
Exception
Copyright © 2016 Eclipse JGit Project. All rights reserved.