DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41940>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41940

           Summary: BuildFileTest assumes a project file has at least one
                    target
           Product: Ant
           Version: 1.7.0
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: regression
          Priority: P3
         Component: Other
        AssignedTo: dev@ant.apache.org
        ReportedBy: [EMAIL PROTECTED]


This simplified subclass of BuildFileTest fails:

  public class MyAntTestClass extends BuildFileTest {
    public void testBaseline() {
          Assert.assertEqual(new String("foo"),"foo","foo");
    }
  }

because the new BuildFileTest 'tearDown' assumes 
'getTargets()' returns non-null. 

With Ant 1.7 BuildFileTest will die for simple internal test cases 
where no build file is involved but the larger testsuite includes
build-file dependent tests (hence the subclassing).

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to