Browse Source

there's been a reason tearDown threw Exception

master
Stefan Bodewig 7 years ago
parent
commit
64dc75ad4c
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      src/tests/junit/org/apache/tools/ant/BuildFileTest.java

+ 5
- 1
src/tests/junit/org/apache/tools/ant/BuildFileTest.java View File

@@ -71,8 +71,12 @@ public abstract class BuildFileTest extends TestCase {
* to clean up after each test. Note that no "setUp" target
* is automatically called, since it's trivial to have a
* test target depend on it.
*
* @throws Exception this implementation doesn't throw any
* exception but we've added it to the signature so that
* subclasses can throws whatever they need.
*/
protected void tearDown() {
protected void tearDown() throws Exception {
if (project == null) {
/*
* Maybe the BuildFileTest was subclassed and there is


Loading…
Cancel
Save