changes in package name

This commit is contained in:
dm.naumenko@gmail.com
2010-10-15 11:54:33 +00:00
parent a75e7cf277
commit b07fe743de
3 changed files with 17 additions and 3 deletions

View File

@@ -1,4 +1,4 @@
package testcase.diffutills;
package diffutills;
import java.util.*;
@@ -65,4 +65,18 @@ public class DiffTest extends TestCase {
}
}), delta.getRevised());
}
public void testDiff_EmptyList() {
Patch patch = DiffUtils.diff(new ArrayList<String>(), new ArrayList<String>());
assertNotNull(patch);
assertEquals(patch.getDeltas().size(), 0);
}
public void testDiff_EmptyListWithNonEmpty() {
Patch patch = DiffUtils.diff(new ArrayList<String>(), Arrays.asList("aaa"));
assertNotNull(patch);
assertEquals(patch.getDeltas().size(), 1);
Delta delta = patch.getDeltas().get(0);
assertEquals(InsertDelta.class, delta.getClass());
}
}