Repository: ant
Updated Branches:
  refs/heads/master 60f1c012a -> fc1a841c0


the method used to "fail" unconditionally on IOExceptions


Project: http://git-wip-us.apache.org/repos/asf/ant/repo
Commit: http://git-wip-us.apache.org/repos/asf/ant/commit/1cf647b2
Tree: http://git-wip-us.apache.org/repos/asf/ant/tree/1cf647b2
Diff: http://git-wip-us.apache.org/repos/asf/ant/diff/1cf647b2

Branch: refs/heads/master
Commit: 1cf647b2da3fbc10421134ee29d577aa2df0051d
Parents: 60f1c01
Author: Stefan Bodewig <bode...@apache.org>
Authored: Mon Apr 23 10:30:35 2018 +0200
Committer: Stefan Bodewig <bode...@apache.org>
Committed: Mon Apr 23 10:30:35 2018 +0200

----------------------------------------------------------------------
 src/tests/junit/org/apache/tools/ant/taskdefs/FilterTest.java | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ant/blob/1cf647b2/src/tests/junit/org/apache/tools/ant/taskdefs/FilterTest.java
----------------------------------------------------------------------
diff --git a/src/tests/junit/org/apache/tools/ant/taskdefs/FilterTest.java 
b/src/tests/junit/org/apache/tools/ant/taskdefs/FilterTest.java
index 1629f8b..f20d9d5 100644
--- a/src/tests/junit/org/apache/tools/ant/taskdefs/FilterTest.java
+++ b/src/tests/junit/org/apache/tools/ant/taskdefs/FilterTest.java
@@ -34,6 +34,7 @@ import org.junit.Test;
 import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertNotNull;
 import static org.junit.Assert.assertTrue;
+import static org.junit.Assert.fail;
 
 public class FilterTest {
 
@@ -117,8 +118,8 @@ public class FilterTest {
         try (BufferedReader in = new BufferedReader(new FileReader(f))) {
             line = in.readLine();
         } catch (IOException ioe) {
-            assertNotNull("filter test" + testNumber
-                    + " failed.  IOException while reading filtered file: " + 
ioe, line);
+            fail("filter test" + testNumber
+                 + " failed.  IOException while reading filtered file: " + 
ioe);
         }
         f.delete();
         return line;

Reply via email to