public class MergeAlgorithmTest extends Object
| Constructor and Description |
|---|
MergeAlgorithmTest() |
| Modifier and Type | Method and Description |
|---|---|
static String |
t(String text) |
static RawText |
T(String text) |
void |
testAdjacentModifications() |
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 |
testSeperateModifications() |
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.
|
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 testSeperateModifications()
throws IOException
IOExceptionpublic void testTwoSimilarModsAndOneInsert()
throws IOException
IOExceptionpublic void testEmptyTexts()
throws IOException
IOExceptionCopyright © 2015. All rights reserved.