ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: svn commit: r381780 - in /ant/core/trunk: WHATSNEW docs/manual/OptionalTasks/junit.html src/main/org/apache/tools/ant/taskdefs/optional/junit/JUnitTestRunner.java src/main/org/apache/tools/ant/taskdefs/optional/junit/JUnitVersionHelper.java
Date Thu, 02 Mar 2006 04:57:49 GMT
On Wed, 01 Mar 2006, Jesse Glick <jesse.glick@sun.com> wrote:
> Stefan Bodewig wrote:

>> Will this patch still allow me to run those tests?  Or will
>> wrapping the tests in a JUnit4TestAdapter force me to use
>> annotations?
> 
> No, you can still use the 3-compatible tests as before.

Great.

> You do need to be running JDK 5+

Yes, I know that.

> I will however patch JUnitTestRunner a tiny bit to be able to run
> JUnit 3 tests on JDK 1.4 if your classpath contains JUnit 3 _before_
> JUnit 4.

This probably works that way right now, I'd expect Class.forName for
JUnit4TestAdapter to throw and exception because of the class file
version on JDK 1.4 and then JUnitTestRunner falls back to the old
behaviour.

Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message