Do not use String.isEmpty in test class.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1477518 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Thomas Neidhart 2013-04-30 09:26:31 +00:00
parent c41e831722
commit 80e9621339
1 changed files with 3 additions and 3 deletions

View File

@ -330,7 +330,7 @@ public class ListUtilsTest extends BulkTest {
@SuppressWarnings("unchecked")
List<Character> lcs = ListUtils.longestCommonSubsequence(Collections.EMPTY_LIST, Collections.EMPTY_LIST);
assertTrue(lcs.isEmpty());
assertEquals(0, lcs.size());
List<Character> list1 = Arrays.asList('B', 'A', 'N', 'A', 'N', 'A');
List<Character> list2 = Arrays.asList('A', 'N', 'A', 'N', 'A', 'S');
@ -369,7 +369,7 @@ public class ListUtilsTest extends BulkTest {
} catch (final IllegalArgumentException e) {}
String lcs = ListUtils.longestCommonSubsequence("", "");
assertTrue(lcs.isEmpty());
assertEquals(0, lcs.length());
String banana = "BANANA";
String ananas = "ANANAS";
@ -385,7 +385,7 @@ public class ListUtilsTest extends BulkTest {
String zorro = "ZORRO";
lcs = ListUtils.longestCommonSubsequence(banana, zorro);
assertTrue(lcs.isEmpty());
assertEquals(0, lcs.length());
}
public void testPartition() {