Browse Source

the method used to "fail" unconditionally on IOExceptions

master
Stefan Bodewig 7 years ago
parent
commit
1cf647b2da
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      src/tests/junit/org/apache/tools/ant/taskdefs/FilterTest.java

+ 3
- 2
src/tests/junit/org/apache/tools/ant/taskdefs/FilterTest.java View File

@@ -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;


Loading…
Cancel
Save