public class MergeAlgorithmTest extends Object
| Modifier and Type | Field and Description |
|---|---|
static boolean[] |
newlineAtEndDataPoints |
| Constructor and Description |
|---|
MergeAlgorithmTest(boolean newlineAtEnd) |
| Modifier and Type | Method and Description |
|---|---|
String |
t(String text) |
org.eclipse.jgit.diff.RawText |
T(String text) |
void |
testAdjacentModifications() |
void |
testBlankLines() |
void |
testConflictAtEnd()
Test a conflicting region at the very end of the text.
|
void |
testConflictAtStart()
Test a conflicting region at the very start of the text.
|
void |
testDeleteVsModify()
Check that a deleted vs.
|
void |
testEmptyTexts()
Test situations where (at least) one input value is the empty text
|
void |
testInsertVsModify() |
void |
testNoAgainstOneModification()
Test a merge where only the second text contains modifications.
|
void |
testOneAgainstTwoConflictingModifications()
Test a case where we have three consecutive chunks.
|
void |
testSameModification()
Check for a conflict where the second text was changed similar to the
first one, but the second texts modification covers one more line.
|
void |
testSeparateModifications() |
void |
testTwoComplicatedModifications()
Merge two complicated modifications.
|
void |
testTwoConflictingModifications()
Check for a conflict where the second text was changed similar to the
first one, but the second texts modification covers one more line.
|
void |
testTwoNonConflictingModifications()
Both texts contain modifications but not on the same chunks.
|
void |
testTwoSimilarModsAndOneInsert()
Test merging two contents which do one similar modification and one
insertion is only done by one side, in the middle.
|
void |
testTwoSimilarModsAndOneInsertAtEnd()
Test merging two contents which do one similar modification and one
insertion is only done by one side, at the end.
|
void |
testTwoSimilarModsAndOneInsertAtEndNoNewlineAtEnd() |
public void testTwoConflictingModifications()
throws IOException
IOExceptionpublic void testOneAgainstTwoConflictingModifications()
throws IOException
IOExceptionpublic void testNoAgainstOneModification()
throws IOException
IOExceptionpublic void testTwoNonConflictingModifications()
throws IOException
IOExceptionpublic void testTwoComplicatedModifications()
throws IOException
IOExceptionpublic void testConflictAtStart()
throws IOException
IOExceptionpublic void testConflictAtEnd()
throws IOException
IOExceptionpublic void testSameModification()
throws IOException
IOExceptionpublic void testDeleteVsModify()
throws IOException
IOExceptionpublic void testInsertVsModify()
throws IOException
IOExceptionpublic void testAdjacentModifications()
throws IOException
IOExceptionpublic void testSeparateModifications()
throws IOException
IOExceptionpublic void testBlankLines()
throws IOException
IOExceptionpublic void testTwoSimilarModsAndOneInsert()
throws IOException
IOExceptionpublic void testTwoSimilarModsAndOneInsertAtEnd()
throws IOException
IOExceptionpublic void testTwoSimilarModsAndOneInsertAtEndNoNewlineAtEnd()
throws IOException
IOExceptionpublic void testEmptyTexts()
throws IOException
IOExceptionpublic org.eclipse.jgit.diff.RawText T(String text)
Copyright © 2017 Eclipse JGit Project. All rights reserved.