commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1199992 - /commons/proper/compress/trunk/src/test/java/org/apache/commons/compress/changes/ChangeSetTestCase.java
Date Wed, 09 Nov 2011 21:56:44 GMT
Author: ggregory
Date: Wed Nov  9 21:56:44 2011
New Revision: 1199992

URL: http://svn.apache.org/viewvc?rev=1199992&view=rev
Log:
Use Collection.isEmpty() instead of size() == 0

Modified:
    commons/proper/compress/trunk/src/test/java/org/apache/commons/compress/changes/ChangeSetTestCase.java

Modified: commons/proper/compress/trunk/src/test/java/org/apache/commons/compress/changes/ChangeSetTestCase.java
URL: http://svn.apache.org/viewvc/commons/proper/compress/trunk/src/test/java/org/apache/commons/compress/changes/ChangeSetTestCase.java?rev=1199992&r1=1199991&r2=1199992&view=diff
==============================================================================
--- commons/proper/compress/trunk/src/test/java/org/apache/commons/compress/changes/ChangeSetTestCase.java
(original)
+++ commons/proper/compress/trunk/src/test/java/org/apache/commons/compress/changes/ChangeSetTestCase.java
Wed Nov  9 21:56:44 2011
@@ -1159,8 +1159,8 @@ public final class ChangeSetTestCase ext
             ChangeSetPerformer performer = new ChangeSetPerformer(changes);
             ChangeSetResults results = performer.perform(ais, out);
             assertTrue(results.getAddedFromStream().contains("testdata/test1.xml"));
-            assertTrue(results.getAddedFromChangeSet().size() == 0);
-            assertTrue(results.getDeleted().size() == 0);
+            assertTrue(results.getAddedFromChangeSet().isEmpty());
+            assertTrue(results.getDeleted().isEmpty());
             is.close();
 
         } finally {



Mime
View raw message