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) |
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
IOException
public void testOneAgainstTwoConflictingModifications() throws IOException
IOException
public void testNoAgainstOneModification() throws IOException
IOException
public void testTwoNonConflictingModifications() throws IOException
IOException
public void testTwoComplicatedModifications() throws IOException
IOException
public void testConflictAtStart() throws IOException
IOException
public void testConflictAtEnd() throws IOException
IOException
public void testSameModification() throws IOException
IOException
public void testDeleteVsModify() throws IOException
IOException
public void testInsertVsModify() throws IOException
IOException
public void testAdjacentModifications() throws IOException
IOException
public void testSeparateModifications() throws IOException
IOException
public void testBlankLines() throws IOException
IOException
public void testTwoSimilarModsAndOneInsert() throws IOException
IOException
public void testTwoSimilarModsAndOneInsertAtEnd() throws IOException
IOException
public void testTwoSimilarModsAndOneInsertAtEndNoNewlineAtEnd() throws IOException
IOException
public void testEmptyTexts() throws IOException
IOException
Copyright © 2018 Eclipse JGit Project. All rights reserved.