commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1807515 - /commons/proper/vfs/trunk/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/zip/test/FileLockTestCase.java
Date Wed, 06 Sep 2017 18:22:35 GMT
Author: ggregory
Date: Wed Sep  6 18:22:34 2017
New Revision: 1807515

URL: http://svn.apache.org/viewvc?rev=1807515&view=rev
Log:
Better test assetion.

Modified:
    commons/proper/vfs/trunk/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/zip/test/FileLockTestCase.java

Modified: commons/proper/vfs/trunk/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/zip/test/FileLockTestCase.java
URL: http://svn.apache.org/viewvc/commons/proper/vfs/trunk/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/zip/test/FileLockTestCase.java?rev=1807515&r1=1807514&r2=1807515&view=diff
==============================================================================
--- commons/proper/vfs/trunk/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/zip/test/FileLockTestCase.java
(original)
+++ commons/proper/vfs/trunk/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/zip/test/FileLockTestCase.java
Wed Sep  6 18:22:34 2017
@@ -65,7 +65,7 @@ public class FileLockTestCase {
             try (InputStream inputStream = zipFileObject.getContent().getInputStream()) {
                 String string = IOUtils.toString(inputStream, "UTF-8");
                 Assert.assertNotNull(string);
-                Assert.assertTrue(string.length() > 0);
+                Assert.assertEquals("This is a test file.", string);
             }
         }
     }



Mime
View raw message