commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1165968 - /commons/proper/io/trunk/src/test/java/org/apache/commons/io/FileSystemUtilsTestCase.java
Date Wed, 07 Sep 2011 02:45:19 GMT
Author: ggregory
Date: Wed Sep  7 02:45:19 2011
New Revision: 1165968

URL: http://svn.apache.org/viewvc?rev=1165968&view=rev
Log:
Test bullet-proofing (FindBugs)

Modified:
    commons/proper/io/trunk/src/test/java/org/apache/commons/io/FileSystemUtilsTestCase.java

Modified: commons/proper/io/trunk/src/test/java/org/apache/commons/io/FileSystemUtilsTestCase.java
URL: http://svn.apache.org/viewvc/commons/proper/io/trunk/src/test/java/org/apache/commons/io/FileSystemUtilsTestCase.java?rev=1165968&r1=1165967&r2=1165968&view=diff
==============================================================================
--- commons/proper/io/trunk/src/test/java/org/apache/commons/io/FileSystemUtilsTestCase.java
(original)
+++ commons/proper/io/trunk/src/test/java/org/apache/commons/io/FileSystemUtilsTestCase.java
Wed Sep  7 02:45:19 2011
@@ -25,6 +25,8 @@ import java.io.InputStreamReader;
 import java.io.OutputStream;
 import java.util.Locale;
 
+import junit.framework.Assert;
+
 import org.apache.commons.io.testtools.FileBasedTestCase;
 
 /**
@@ -69,6 +71,7 @@ public class FileSystemUtilsTestCase ext
             try {
                 r = new BufferedReader(new InputStreamReader(proc.getInputStream()));
                 String line = r.readLine();
+                Assert.assertNotNull("Unexpected null line", line);
                 if (line.indexOf("512") >= 0) {
                     kilobyteBlock = false;
                 }



Mime
View raw message