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
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 testSeperateModifications() throws IOException
IOException
public void testTwoSimilarModsAndOneInsert() throws IOException
IOException
public void testEmptyTexts() throws IOException
IOException
Copyright © 2015. All rights reserved.