commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From t.@apache.org
Subject svn commit: r1477518 - /commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/ListUtilsTest.java
Date Tue, 30 Apr 2013 09:26:31 GMT
Author: tn
Date: Tue Apr 30 09:26:31 2013
New Revision: 1477518

URL: http://svn.apache.org/r1477518
Log:
Do not use String.isEmpty in test class.

Modified:
    commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/ListUtilsTest.java

Modified: commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/ListUtilsTest.java
URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/ListUtilsTest.java?rev=1477518&r1=1477517&r2=1477518&view=diff
==============================================================================
--- commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/ListUtilsTest.java
(original)
+++ commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/ListUtilsTest.java
Tue Apr 30 09:26:31 2013
@@ -330,7 +330,7 @@ public class ListUtilsTest extends BulkT
 
         @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 BulkT
       } 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 BulkT
       String zorro = "ZORRO";
       lcs = ListUtils.longestCommonSubsequence(banana, zorro);
       
-      assertTrue(lcs.isEmpty());
+      assertEquals(0, lcs.length());
   }
 
     public void testPartition() {



Mime
View raw message