JUnit 4 Extensions 0.2.4 have been published. Based on the great work of the RetroWeaver project, it is now possible to develop JUnit 4 based tests cases using annotations and
run them with a JDK
1.4 environment. The test suite of JUnit 4.2 itself is running successfully with JDK 1.4 !
Note: RetroWeaver is a tool to weave Java 5 byte code with compatibility libraries to support Java 5 functionality for previous JDK's (see also
http://retroweaver.sourceforge.net/). JUnitExt provides pre-weaved versions of JUnit 4.2, and the required RetroWeaver development and runtime jars. There is a tiny sample project included with an simple ANT build file as demo for your own project.
Feel free to try out JUnit 4 annotations with JDK 1.4, and give us valuable feedback.
There is also a first support for an annotation
@XMLParameter
(like
@Parameter) and the corresponding
XMLParameterRunner, where test specifications can be made using XML files, and instrument test cases with them.
XMLParameter will be actively developed for additional data type support. For more details, observe progress at
http://code.google.com/p/junitext/wiki/XMLParameterizedRunnerReference.For details and download, see
http://www.junitext.org
.
Enjoy, Jochen
Project owner of JUnitExt